我训练了具有三种尺寸的NNET Caret模型的调谐功能。最终模型配备了一种尺寸。它是由最小的RMSE自动选择的。
Neural Network
9700 samples
23 predictor
Pre-processing: centered, scaled
Resampling: Cross-Validated (8 fold, repeated 8 times)
Summary of sample sizes: 8488, 8488, 8487, 8485, 8488, 8488, ...
Resampling results across tuning parameters:
size RMSE Rsquared RMSE SD Rsquared SD
12 0.0328 0.951 0.002033 0.006127
24 0.0221 0.978 0.001358 0.002764
72 0.0134 0.992 0.000647 0.000815
Tuning parameter 'decay' was held constant at a value of 5e-04
RMSE was used to select the optimal model using the smallest value.
The final values used for the model were size = 72 and decay = 5e-04.
但是我也想探索使用其他尺寸训练的模型。我可以将预测函数与模型的其他调整参数一起使用吗?
如果使用的savePredictions
参数trainControl
,则可以从调整网格中的不同模型获得保持预测。除此之外,您还需要安装单独的模型。
最大限度
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句