public class XGBoostRegTree
extends java.lang.Object
implements biz.k11i.xgboost.tree.RegTree
| Modifier and Type | Method and Description |
|---|---|
int |
getLeafIndex(biz.k11i.xgboost.util.FVec feat,
int root_id)
Retrieves nodes from root to leaf and returns leaf index.
|
float |
getLeafValue(biz.k11i.xgboost.util.FVec feat,
int root_id)
Retrieves nodes from root to leaf and returns leaf value.
|
biz.k11i.xgboost.tree.RegTreeNode[] |
getNodes() |
public int getLeafIndex(biz.k11i.xgboost.util.FVec feat,
int root_id)
getLeafIndex in interface biz.k11i.xgboost.tree.RegTreefeat - feature vectorroot_id - starting root indexpublic final float getLeafValue(biz.k11i.xgboost.util.FVec feat,
int root_id)
getLeafValue in interface biz.k11i.xgboost.tree.RegTreefeat - feature vectorroot_id - starting root indexpublic biz.k11i.xgboost.tree.RegTreeNode[] getNodes()
getNodes in interface biz.k11i.xgboost.tree.RegTree