Class EncoderExampleWithNormalization
- java.lang.Object
-
- org.apache.ignite.examples.ml.preprocessing.encoding.EncoderExampleWithNormalization
-
public class EncoderExampleWithNormalization extends java.lang.ObjectExample that shows how to combine together two preprocessors: String Encoder preprocessor to encode features presented as a strings and Normalizer to normalize data presented as doubles.Code in this example launches Ignite grid and fills the cache with test data (based on mushrooms dataset).
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 EncoderExampleWithNormalization()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Run example.
-