Displaying 2 results from an estimated 2 matches for "doule".
Did you mean:
double
2006 Jul 12
1
-Infinity for Doule type column
Hi list.
I''m writing a program that stores a lot of Floats into MySQL database.
Simplified version of the program use the following form of class.
class Val < ActiveRecord::BASE
end
And Vals table contains one column:
num double
One of my data contains -Infinity for num and when I try to
Val.new
Val.num = <- Here goes -Inifinity
Val.save!
Then the program crashes:
2004 May 07
0
rpart for CART with weights/priors
...t4 <- rpart(Kyphosis ~ Age + Number + Start, data=kyphosis1,
weights=weight)
#leads to result very similar to fit2 with
loss<-matrix(c(0,1,2,0),nrow=2,ncol=2)
#(same tree and cutoff points, but slightly different probabilities, maybe
numerical artefact?)
fit4
plot(fit4)
text(fit4,use.n=T)
#doule check with inverse loss matrix
loss<-matrix(c(0,1,2,0),nrow=2,ncol=2,byrow=T)
fit2<- rpart(Kyphosis ~ Age + Number + Start, data=kyphosis,
parms=list(loss=loss))
weight<-c(rep(2,64),rep(1,17))
fit4 <- rpart(Kyphosis ~ Age + Number + Start, data=kyphosis1,
weights=weight)
fit2
fit4
#a...