Package org.jpmml.xgboost
Class RegTree
- java.lang.Object
-
- org.jpmml.xgboost.RegTree
-
- All Implemented Interfaces:
BinaryLoadable,JSONLoadable,UBJSONLoadable
public class RegTree extends Object implements BinaryLoadable, JSONLoadable, UBJSONLoadable
-
-
Constructor Summary
Constructors Constructor Description RegTree()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.dmg.pmml.tree.TreeModelencodeTreeModel(org.jpmml.converter.PredicateManager predicateManager, org.jpmml.converter.Schema schema)FloatgetLeafValue()BitSetgetSplitCategories(int splitIndex)Set<Integer>getSplitType(int splitIndex)booleanhasCategoricalSplits()voidloadBinary(XGBoostDataInput input)voidloadJSON(com.google.gson.JsonObject tree)voidloadUBJSON(com.devsmart.ubjson.UBObject tree)
-
-
-
Method Detail
-
loadBinary
public void loadBinary(XGBoostDataInput input) throws IOException
- Specified by:
loadBinaryin interfaceBinaryLoadable- Throws:
IOException
-
loadJSON
public void loadJSON(com.google.gson.JsonObject tree)
- Specified by:
loadJSONin interfaceJSONLoadable
-
loadUBJSON
public void loadUBJSON(com.devsmart.ubjson.UBObject tree)
- Specified by:
loadUBJSONin interfaceUBJSONLoadable
-
getLeafValue
public Float getLeafValue()
-
hasCategoricalSplits
public boolean hasCategoricalSplits()
-
getSplitCategories
public BitSet getSplitCategories(int splitIndex)
-
encodeTreeModel
public org.dmg.pmml.tree.TreeModel encodeTreeModel(org.jpmml.converter.PredicateManager predicateManager, org.jpmml.converter.Schema schema)
-
-