I'm following the book 'R deep learning essentials:by Dr.Joshua' In ch2, 22page , there's a code following
set.seed(1234)
digits.m1 <- train(digits.X, digits.y,
method = "nnet",
tuneGrid = expand.grid(
.size = c(5),
.decay = 0.1),
trControl = trainControl(method = "none"),
MaxNWts = 10000,
maxit = 100)
And I met the ERROR : Error in UseMethod("train") : no applicable method for 'train' applied to an object of class "data.frame"
I'm using R 3.3.2, window7