Update the Bagging implementation to use Hoeffding Trees as its base learner.
In addition, the default base learner was also set to trees.HoeffdingTrees in Bagging. This makes the Bagging implementation closer to the current default implementation in MOA (see OzaBag.java).
Classes affected by the changes
Bagging
Changed its default learner.
HoeffdingTreeModel
Included the implementation of proba(example: Example): Double as HoeffdingTreeModel now extends ClassificationModel instead of Model.
This allows using HoeffdingTree as a base learner for Bagging.
ClassificationModel
Updated the documentation (i.e. changed from Instance to Example)
Tests
Explicitly defining the base learner as the HoeffdingTree.
Summary of the changes
Update the Bagging implementation to use Hoeffding Trees as its base learner. In addition, the default base learner was also set to trees.HoeffdingTrees in Bagging. This makes the Bagging implementation closer to the current default implementation in MOA (see OzaBag.java).
Classes affected by the changes
Bagging
Changed its default learner.
HoeffdingTreeModel
Included the implementation of
proba(example: Example): Double
as HoeffdingTreeModel now extendsClassificationModel
instead ofModel
. This allows using HoeffdingTree as a base learner for Bagging.ClassificationModel
Updated the documentation (i.e. changed from Instance to Example)
Tests
Explicitly defining the base learner as the HoeffdingTree.
Implicitly using HoeffdingTree as the base learner for Bagging.