Displaying 1 result from an estimated 1 matches for "test_vowels".
2010 Jun 02
1
nnet: cannot coerce class c("terms", "formula") into a data.frame
...ive: I am now learning neural networks. I want to see how well can
train an artificial neural network model to discriminate between the two
files I am attaching with this message.
http://r.789695.n4.nabble.com/file/n2240582/3dMaskDump.txt 3dMaskDump.txt
http://r.789695.n4.nabble.com/file/n2240582/test_vowels.txt test_vowels.txt
Question: when I am attempting to run
>cvc_nnet <- nnet(G ~ ., data=cvc_lda, size=1,iter=10,MaxNWts=100)
I get an error saying:
Error in as.data.frame.default(x[[i]], optional = TRUE) :
cannot coerce class c("terms", "formula") into a data.frame...