Package biz.k11i.xgboost.gbm
Class Dart
- java.lang.Object
-
- biz.k11i.xgboost.gbm.GBBase
-
- biz.k11i.xgboost.gbm.GBTree
-
- biz.k11i.xgboost.gbm.Dart
-
- All Implemented Interfaces:
GradBooster
,java.io.Serializable
public class Dart extends GBTree
Gradient boosted DART tree implementation.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class biz.k11i.xgboost.gbm.GBTree
GBTree.ModelParam
-
Nested classes/interfaces inherited from interface biz.k11i.xgboost.gbm.GradBooster
GradBooster.Factory
-
-
Field Summary
Fields Modifier and Type Field Description private float[]
weightDrop
-
Fields inherited from class biz.k11i.xgboost.gbm.GBTree
_groupTrees, mparam
-
-
Constructor Summary
Constructors Constructor Description Dart()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
loadModel(ModelReader reader, boolean with_pbuffer)
Loads model from stream.(package private) float
pred(FVec feat, int bst_group, int root_index, int ntree_limit)
-
Methods inherited from class biz.k11i.xgboost.gbm.GBTree
predict, predictLeaf, predictSingle, predPath
-
Methods inherited from class biz.k11i.xgboost.gbm.GBBase
setNumClass
-
-
-
-
Method Detail
-
loadModel
public void loadModel(ModelReader reader, boolean with_pbuffer) throws java.io.IOException
Description copied from interface:GradBooster
Loads model from stream.- Specified by:
loadModel
in interfaceGradBooster
- Overrides:
loadModel
in classGBTree
- Parameters:
reader
- input streamwith_pbuffer
- whether the incoming data contains pbuffer- Throws:
java.io.IOException
- If an I/O error occurs
-
-