Class BaggedLogisticRegressionSGDTrainerExample
- java.lang.Object
-
- org.apache.ignite.examples.ml.regression.logistic.bagged.BaggedLogisticRegressionSGDTrainerExample
-
public class BaggedLogisticRegressionSGDTrainerExample extends java.lang.ObjectThis example shows how bagging technique may be applied to arbitrary trainer. As an example (a bit synthetic) logistic regression is considered.Code in this example launches Ignite grid and fills the cache with test data points (based on the Iris dataset).
After that it trains bootstrapped (or bagged) version of logistic regression trainer. Bootstrapping is done on both samples and features (Samples bagging, Features bagging).
Finally, this example applies cross-validation to resulted model and prints accuracy if each fold.
-
-
Constructor Summary
Constructors Constructor Description BaggedLogisticRegressionSGDTrainerExample()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Run example.
-