public class Dart extends GBTree
GradBooster.Factory| Modifier and Type | Field and Description |
|---|---|
protected int |
num_class |
protected int |
num_feature |
protected int |
num_output_group |
| Modifier and Type | Method and Description |
|---|---|
void |
loadModel(PredictorConfiguration config,
ModelReader reader,
boolean with_pbuffer)
Loads model from stream.
|
void |
setNumClass(int numClass) |
void |
setNumFeature(int numFeature) |
float |
weight(int tidx) |
getGroupedTrees, predict, predictLeaf, predictLeafPath, predictSingleprotected int num_class
protected int num_feature
protected int num_output_group
public void loadModel(PredictorConfiguration config, ModelReader reader, boolean with_pbuffer) throws java.io.IOException
GradBoosterloadModel in interface GradBoosterloadModel in class GBTreeconfig - predictor configurationreader - input streamwith_pbuffer - whether the incoming data contains pbufferjava.io.IOException - If an I/O error occurspublic float weight(int tidx)
public void setNumClass(int numClass)
setNumClass in interface GradBoosterpublic void setNumFeature(int numFeature)
setNumFeature in interface GradBooster