Package com.yahoo.searchlib.gbdt
Class TreeNode
- java.lang.Object
-
- com.yahoo.searchlib.gbdt.TreeNode
-
- Direct Known Subclasses:
FeatureNode
,ResponseNode
public abstract class TreeNode extends java.lang.Object
- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description TreeNode(java.util.Optional<java.lang.Integer> samples)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static TreeNode
fromDom(org.w3c.dom.Node node)
java.util.Optional<java.lang.Integer>
samples()
Returns the number of samples in the training set that matches this node if this model does not contain this information (i.e if it is not an "ext" model).abstract java.lang.String
toRankingExpression()
-
-
-
Method Detail
-
toRankingExpression
public abstract java.lang.String toRankingExpression()
-
samples
public java.util.Optional<java.lang.Integer> samples()
Returns the number of samples in the training set that matches this node if this model does not contain this information (i.e if it is not an "ext" model).
-
fromDom
public static TreeNode fromDom(org.w3c.dom.Node node)
-
-