Class Step_4_Add_age_fare
- java.lang.Object
-
- org.apache.ignite.examples.ml.tutorial.Step_4_Add_age_fare
-
public class Step_4_Add_age_fare extends java.lang.ObjectAdd yet two numerical features "age", "fare" to improve our model overStep_3_Categorial.Code in this example launches Ignite grid and fills the cache with test data (based on Titanic passengers data).
After that it defines preprocessors that extract features from an upstream data and encode string values (categories) to double values in specified range.
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_4_Add_age_fare()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Run example.
-