public class Rule
extends water.Iced
Constructor and Description |
---|
Rule(Condition[] conditions,
double predictionValue,
java.lang.String varName) |
Rule(Condition[] conditions,
double predictionValue,
java.lang.String varName,
double coefficient,
double support) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static java.util.Set<Rule> |
extractRulesFromTree(hex.genmodel.algos.tree.SharedTreeSubgraph tree,
int modelId,
java.lang.String classString) |
static java.util.List<Rule> |
extractRulesListFromModel(SharedTreeModel model,
int modelId,
int nclasses) |
int |
hashCode() |
void |
map(water.fvec.Chunk[] cs,
byte[] out) |
void |
setCoefficient(double coefficient) |
void |
setVarName(java.lang.String varName) |
public Rule(Condition[] conditions, double predictionValue, java.lang.String varName)
public Rule(Condition[] conditions, double predictionValue, java.lang.String varName, double coefficient, double support)
public void setCoefficient(double coefficient)
public void setVarName(java.lang.String varName)
public void map(water.fvec.Chunk[] cs, byte[] out)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static java.util.List<Rule> extractRulesListFromModel(SharedTreeModel model, int modelId, int nclasses)
public static java.util.Set<Rule> extractRulesFromTree(hex.genmodel.algos.tree.SharedTreeSubgraph tree, int modelId, java.lang.String classString)