|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.df.node.Node
org.apache.mahout.df.node.Leaf
org.apache.mahout.df.node.MockLeaf
public class MockLeaf
Custom Leaf node that returns for each instance its own label. Used mainly for testing purposes
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.mahout.df.node.Node |
---|
Node.Type |
Constructor Summary | |
---|---|
MockLeaf()
|
Method Summary | |
---|---|
int |
classify(Instance instance)
predicts the label for the instance |
protected java.lang.String |
getString()
|
protected Node.Type |
getType()
|
Methods inherited from class org.apache.mahout.df.node.Leaf |
---|
equals, hashCode, maxDepth, nbNodes, readFields, writeNode |
Methods inherited from class org.apache.mahout.df.node.Node |
---|
read, toString, write |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MockLeaf()
Method Detail |
---|
public int classify(Instance instance)
Node
classify
in class Leaf
protected Node.Type getType()
getType
in class Leaf
protected java.lang.String getString()
getString
in class Leaf
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |