我目前正在通过Max& amp;的Applied Predictive Modeling中进行计算练习。 Kjell和我在执行MARS模型时遇到上述标题中的错误。
下面提供了所使用的软件包和代码的详细信息:
使用的包:AppliedPredictiveModelling和earth。
marsFit <- earth(solTrainXtrans, solTrainY)
marsGrid <- expand.grid(degree = 1:2, nprune = 2:38)
set.seed(100)
marsTuned <- train(solTrainXtrans, solTrainY,
method = "earth",
# declaring the candidate models to test
tuneGrid = marsGrid,
trcontrol = trainControl(method = "cv")
)
获取的错误消息如下所示:
Error in train.default(solTrainXtrans, solTrainY, method = "earth", tuneGrid = marsGrid, :
final tuning parameters could not be determined
In addition: There were 50 or more warnings (use warnings() to see the first 50)
任何人都可以告知如何解决这个问题吗?