Class Step_3_Categorial
- java.lang.Object
-
- org.apache.ignite.examples.ml.tutorial.Step_3_Categorial
-
public class Step_3_Categorial extends java.lang.ObjectLet's add two categorial features "sex", "embarked" to predict more precisely than inStep_1_Read_and_Learn.To encode categorial features the String kind type of
EncoderTrainerwill be used.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_3_Categorial()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Run example.
-