This function explores optimal tuning parameter values for the adaptive elastic net model. Using the trained model results, environmental risk score is computed.
1 |
Algorithm:
1 2 3 4 5 6 7 8 9 10 11 | define sets of model parameter values to evaluate
|for each parameter set
| |for each resampling iteration
| | hold out specific samples
| | fit the model on the remainder
| | predict the hold-out samples
| | end
| calculate the average performance across hold-out predictions
| end
determine the optimal parameter set
fit the final model to all the training data using the optimal parameter set
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.