Class Step_17_Parallel_Genetic_Programming_Search
- java.lang.Object
-
- org.apache.ignite.examples.ml.tutorial.hyperparametertuning.Step_17_Parallel_Genetic_Programming_Search
-
public class Step_17_Parallel_Genetic_Programming_Search extends java.lang.ObjectTo choose the best hyper-parameters the cross-validation withParamGridwill be used in this example.Code in this example launches Ignite grid and fills the cache with test data (based on Titanic passengers data).
After that it defines how to split the data to train and test sets and configures preprocessors that extract features from an upstream data and perform other desired changes over the extracted data.
Then, it tunes hyper-parameters with K-fold Cross-Validation on the split training set and trains the model based on the processed data using decision tree classification and the obtained hyper-parameters.
Finally, this example uses
Evaluatorfunctionality to compute metrics from predictions.The purpose of cross-validation is model checking, not model building.
We train
kdifferent models.They differ in that
1/(k-1)th of the training data is exchanged against other cases.These models are sometimes called surrogate models because the (average) performance measured for these models is taken as a surrogate of the performance of the model trained on all cases.
All scenarios are described there: https://sebastianraschka.com/faq/docs/evaluate-a-model.html
-
-
Constructor Summary
Constructors Constructor Description Step_17_Parallel_Genetic_Programming_Search()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Run example.
-