Package org.jpmml.xgboost
Class BinaryNode
- java.lang.Object
-
- org.jpmml.xgboost.Node
-
- org.jpmml.xgboost.BinaryNode
-
- All Implemented Interfaces:
BinaryLoadable
public class BinaryNode extends Node implements BinaryLoadable
-
-
Field Summary
-
Fields inherited from class org.jpmml.xgboost.Node
SPLIT_CATEGORICAL, SPLIT_NUMERICAL
-
-
Constructor Summary
Constructors Constructor Description BinaryNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandefault_left()BitSetget_split_categories()booleanis_leaf()floatleaf_value()intleft_child()voidloadBinary(XGBoostDataInput input)intright_child()intsplit_cond()intsplit_index()intsplit_type()
-
-
-
Method Detail
-
loadBinary
public void loadBinary(XGBoostDataInput input) throws IOException
- Specified by:
loadBinaryin interfaceBinaryLoadable- Throws:
IOException
-
leaf_value
public float leaf_value()
- Specified by:
leaf_valuein classNode
-
left_child
public int left_child()
- Specified by:
left_childin classNode
-
right_child
public int right_child()
- Specified by:
right_childin classNode
-
default_left
public boolean default_left()
- Specified by:
default_leftin classNode
-
split_index
public int split_index()
- Specified by:
split_indexin classNode
-
split_type
public int split_type()
- Specified by:
split_typein classNode
-
split_cond
public int split_cond()
- Specified by:
split_condin classNode
-
get_split_categories
public BitSet get_split_categories()
- Specified by:
get_split_categoriesin classNode
-
-