I am playing around with Adult Dataset
https://archive.ics.uci.edu/ml/datasets/adult and R. I am trying to use the neuralnet
package to train a Neural Network with Back propagation. I have cleaned the data. Now I am trying to run this part :
n <- names(cleanTrain)
f <- as.formula(paste("income~", paste(n[!n %in% "income"], collapse = " + ")))
nn <- neuralnet(f, data=cleanTrain, hidden = 10, algorithm = "backprop", learningrate=0.35)
I get this ERROR:
Error in neurons[[i]] %*% weights[[i]] : requires numeric/complex matrix/vector arguments
P.S:
- I load the train as cleanTrain
- n gets all the names of the dataset
- f returns
income ~ age + workclass + education + education.num + marital.status + occupation + relationship + race +sex + capital.gain + capital.loss + hours.per.week + native.country
Which is the error?