Package org.jpmml.xgboost
Class GBTree
- java.lang.Object
-
- org.jpmml.xgboost.GradientBooster
-
- org.jpmml.xgboost.GBTree
-
- All Implemented Interfaces:
BinaryLoadable,JSONLoadable,UBJSONLoadable
- Direct Known Subclasses:
Dart
public class GBTree extends GradientBooster
-
-
Constructor Summary
Constructors Constructor Description GBTree()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.dmg.pmml.mining.MiningModelencodeModel(ObjFunction obj, float[] base_score, Integer ntreeLimit, org.jpmml.converter.Schema schema)StringgetAlgorithmName()BitSetgetSplitCategories(int splitIndex)Set<Integer>getSplitType(int splitIndex)booleanhasCategoricalSplits()voidloadBinary(XGBoostDataInput input)voidloadJSON(com.google.gson.JsonObject gradientBooster)voidloadUBJSON(com.devsmart.ubjson.UBObject gradientBooster)intnum_parallel_tree()intnum_trees()float[]tree_weights()RegTree[]trees()
-
-
-
Method Detail
-
getAlgorithmName
public String getAlgorithmName()
- Specified by:
getAlgorithmNamein classGradientBooster
-
loadBinary
public void loadBinary(XGBoostDataInput input) throws IOException
- Throws:
IOException
-
loadJSON
public void loadJSON(com.google.gson.JsonObject gradientBooster)
-
loadUBJSON
public void loadUBJSON(com.devsmart.ubjson.UBObject gradientBooster)
-
hasCategoricalSplits
public boolean hasCategoricalSplits()
-
getSplitCategories
public BitSet getSplitCategories(int splitIndex)
-
encodeModel
public org.dmg.pmml.mining.MiningModel encodeModel(ObjFunction obj, float[] base_score, Integer ntreeLimit, org.jpmml.converter.Schema schema)
-
num_trees
public int num_trees()
-
num_parallel_tree
public int num_parallel_tree()
-
trees
public RegTree[] trees()
-
tree_weights
public float[] tree_weights()
-
-