Displaying 1 result from an estimated 1 matches for "crsnnet1".
2009 May 30
0
what is 'class.ind' here?
...o test.cl (below) but I
get an error of
"(list) object cannot be coerced to type 'double'"
my 'targets' vector was the last column of a matrix:
targets=crs$dataset[,922]
and so I tried to use
targets=class.ind(targets)
but still after: > test.cl(targets[-samp], predict(crsNNET1,
crsNNET1[-samp]))
I get:
Error in as.vector(data) :
(list) object cannot be coerced to type 'double'
By the way, my samp vector is:
samp <- c(sample(1:250,125), sample(251:500,125), sample(500:920,300))
Here is the example from nnet:
data(iris3)
# use half the iris data
ir <...