Package org.tribuo.regression.rtree
Class IndependentRegressionTreeModel
java.lang.Object
org.tribuo.Model<T>
org.tribuo.SparseModel<T>
org.tribuo.common.tree.TreeModel<Regressor>
org.tribuo.regression.rtree.IndependentRegressionTreeModel
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.provenance.Provenancable<org.tribuo.provenance.ModelProvenance>,Serializable
A
Model wrapped around a list of decision tree root Nodes used
to generate independent predictions for each dimension in a regression.- See Also:
-
Field Summary
Fields inherited from class org.tribuo.Model
ALL_OUTPUTS, BIAS_FEATURE -
Method Summary
Modifier and TypeMethodDescriptionintgetDepth()Probes the trees to find the depth.getRoot()Returns null, as this model contains multiple roots, one per regression output dimension.getRoots()Returns an unmodifiable view on the root node collection.getTopFeatures(int n) org.tribuo.Prediction<Regressor>toString()Methods inherited from class org.tribuo.SparseModel
copy, getActiveFeaturesMethods inherited from class org.tribuo.Model
castModel, generatesProbabilities, getExcuses, getFeatureIDMap, getName, getOutputIDInfo, getProvenance, predict, predict, setName, validate
-
Method Details
-
getDepth
Probes the trees to find the depth. -
predict
-
getTopFeatures
- Overrides:
getTopFeaturesin classTreeModel<Regressor>
-
getExcuse
-
getFeatures
- Overrides:
getFeaturesin classTreeModel<Regressor>
-
toString
-
getRoots
Returns an unmodifiable view on the root node collection.The nodes themselves are immutable.
- Returns:
- The root node collection.
-
getRoot
Returns null, as this model contains multiple roots, one per regression output dimension.Use
getRoots()instead.
-