Class DecisionTreeRegressionTrainerExample
- java.lang.Object
-
- org.apache.ignite.examples.ml.tree.DecisionTreeRegressionTrainerExample
-
public class DecisionTreeRegressionTrainerExample extends java.lang.ObjectExample of using distributedDecisionTreeRegressionTrainer.Code in this example launches Ignite grid and fills the cache with generated test data points (
sin(x)on interval[0, 10)).After that it creates classification trainer and uses it to train the model on the training set.
Finally, this example loops over the test data points, applies the trained model, and compares prediction to expected outcome (ground truth).
You can change the test data used in this example and re-run it to explore this algorithm further.
-
-
Constructor Summary
Constructors Constructor Description DecisionTreeRegressionTrainerExample()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String... args)Executes example.
-