Question: Cтепик вопрос по заданию
0
gravatar for aivanova
11 months ago by
aivanova110
aivanova110 wrote:

library(randomForest) set.seed(1567) model.rf=randomForest(diabetes~.,data=train, ntree = 100,mtry=5) predTrain.rf = predict(model.rf, train) predTest.rf = predict(model.rf, test)

Error in na.fail.default(list(diabetes = c(1L, 2L, 1L, 2L, 1L, 1L, 2L, : missing values in object

в чем ошибка в коде?

homework difficulties • 207 views
ADD COMMENTlink modified 11 months ago by myuzaigraeva1.8k • written 11 months ago by aivanova110
0
gravatar for myuzaigraeva
11 months ago by
myuzaigraeva1.8k
myuzaigraeva1.8k wrote:

На предыдущем шаге надо было удалить строки с пропущенными значениями

ADD COMMENTlink written 11 months ago by myuzaigraeva1.8k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.03
Traffic: 1 users visited in the last hour