Class Step_7_Split_train_test
- java.lang.Object
-
- org.apache.ignite.examples.ml.tutorial.Step_7_Split_train_test
-
public class Step_7_Split_train_test extends java.lang.ObjectThe highest accuracy in the previous example (Step_6_KNN) is the result of overfitting. For real model estimation is better to use test-train split viaTrainTestDatasetSplitter.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 trains the model based on the processed data using decision tree classification.
Finally, this example uses
Evaluatorfunctionality to compute metrics from predictions.
-
-
Constructor Summary
Constructors Constructor Description Step_7_Split_train_test()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Run example.
-