Class Dart
java.lang.Object
biz.k11i.xgboost.gbm.GBTree
biz.k11i.xgboost.gbm.Dart
- All Implemented Interfaces:
GradBooster, Serializable
-
Nested Class Summary
Nested classes/interfaces inherited from interface GradBooster
GradBooster.Factory -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected int -
Method Summary
Modifier and TypeMethodDescriptionvoidloadModel(PredictorConfiguration config, ModelReader reader, boolean with_pbuffer) Loads model from stream.voidsetNumClass(int numClass) voidsetNumFeature(int numFeature) floatweight(int tidx) Methods inherited from class GBTree
getGroupedTrees, predict, predictLeaf, predictLeafPath, predictSingle
-
Field Details
-
num_class
protected int num_class -
num_feature
protected int num_feature -
num_output_group
protected int num_output_group
-
-
Method Details
-
loadModel
public void loadModel(PredictorConfiguration config, ModelReader reader, boolean with_pbuffer) throws IOException Description copied from interface:GradBoosterLoads model from stream.- Specified by:
loadModelin interfaceGradBooster- Overrides:
loadModelin classGBTree- Parameters:
config- predictor configurationreader- input streamwith_pbuffer- whether the incoming data contains pbuffer- Throws:
IOException- If an I/O error occurs
-
weight
public float weight(int tidx) -
setNumClass
public void setNumClass(int numClass) - Specified by:
setNumClassin interfaceGradBooster
-
setNumFeature
public void setNumFeature(int numFeature) - Specified by:
setNumFeaturein interfaceGradBooster
-