Displaying 2 results from an estimated 2 matches for "fito".
Did you mean:
fit
2011 Jun 20
2
Error of Cross Validation
...rs:
Recently, I tried to write a program to calculate cross-validated predicted
value.
My sources are as follows. However, the R reported an error.
Could you please check the sources? Thanks.
set.seed(100)
x<-rnorm(100)
y<-sample(rep(0:1,50),replace=T)
dat<-data.frame(x,y)
library(rms)
fito<-lrm(y~x)
preo<-predict(fito)
pre<-matrix(NA,nrow=100,ncol=200)
for (i in 1:200)
{
sam<-sample(1:nrow(dat))
sam<-split(sam,1:10)
for (j in 1:10)
{
fit<-lrm(y~x,data=dat[-sam[[j]],])
pre[sam[[j]],i]<-predict(fit,data=dat[sam[[j]],])
}
}
*Yao Zhu*
*Department of Urolog...
2013 Aug 08
14
[LLVMdev] [global-isel] Proposal for a global instruction selector
...t's a simple load and float-to-int conversion which produces this IR:
define float @f(i32* nocapture %p) {
entry:
%l = load i32* %p, align 4
%conv = sitofp i32 %l to float
ret float %conv
}
SelectionDAG generates this SPARC64 assembly:
ld [%i0], %l0
st %l0, [%fp+2043]
ld [%fp+2043], %f0
fitos %f0, %f1
The integer value %l is first loaded into an integer register (%l0) and then bitcasted to a float so it can be used by the fitos instruction which reads an integer in%f0 and writes its float result to %f1. The SPARC target is essentially creating a DAG representing this IR:
define float...