発生している問題・エラーメッセージ
One or more factor levels in the outcome has no data:'135', '148', '557', '560', '568', '574', '580' (etc)
該当のソースコード
modelNnet <- train( y ~ x1+x2+x3, data = dataRegressionTrain, method = "nnet", preProcess = c('center', 'scale'), trControl = trainControl(method = "cv"), tuneGrid = expand.grid(size=c(1:10), decay=seq(0.1, 1, 0.1)), linout = TRUE )
補足情報
RStudioにcsvファイルを読み込んでやっていますがcsvデータの中で抜けているセルはありません。
パラメータとして与えられている変数の中身がわからないので答えようがありません。
あなたの回答
tips
プレビュー