Displaying 1 result from an estimated 1 matches for "lengthoutofsampl".
Did you mean:
lengthoutofsample
2009 Oct 20
2
LDA Precdict - Seems to be predicting on the Training Data
...<- (cbind(outOfSample$v1,outOfSample$v2,outOfSample$v3))
outOfSample <-data.frame(outOfSample)
length(train[,1])
length(outOfSample[,1])
fit <- lda(train$c1~train$v1+train$v2+train$v3)
forecast <- predict(fit,outOfSample)$class
length(forecast)##### I am expecting this to be same as
lengthoutOfSample[,1]), which is 6
Output:
length(forecast)##### I am expecting this to be same as
lengthoutOfSample[,1]), which is 6
[1] 10
--
View this message in context: http://www.nabble.com/LDA-Precdict---Seems-to-be-predicting-on-the-Training-Data-tp25976178p25976178.html
Sent from the R help mailin...