Now it is time for regressions and prediction for all the parameters using the selected spectra with the "puchwain" function, and for test, the non selected ones.
We develop the regressions with Caret using PLS and Cross Validation (the model choose 5 terms).
model_clay_snvdt <- train(y_sel_clay ~.,data=trainDataClay,
method = "pls", scale = TRUE,
trControl = trainControl("cv", number = 10),
tuneLength = 20)
No hay comentarios:
Publicar un comentario