Package com.yahoo.searchlib.gbdt
Class FeatureNode
- java.lang.Object
-
- com.yahoo.searchlib.gbdt.TreeNode
-
- com.yahoo.searchlib.gbdt.FeatureNode
-
- Direct Known Subclasses:
CategoryFeatureNode
,NumericFeatureNode
public abstract class FeatureNode extends TreeNode
A node in a GBDT tree which references a feature value- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description FeatureNode(java.lang.String feature, java.util.Optional<java.lang.Integer> samples, TreeNode left, TreeNode right)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.String
feature()
static FeatureNode
fromDom(org.w3c.dom.Node node)
TreeNode
left()
protected abstract java.lang.String
rankingExpressionCondition()
TreeNode
right()
java.lang.String
toRankingExpression()
-
-
-
Method Detail
-
feature
public java.lang.String feature()
-
left
public TreeNode left()
-
right
public TreeNode right()
-
toRankingExpression
public java.lang.String toRankingExpression()
- Specified by:
toRankingExpression
in classTreeNode
-
rankingExpressionCondition
protected abstract java.lang.String rankingExpressionCondition()
-
fromDom
public static FeatureNode fromDom(org.w3c.dom.Node node)
-
-