aima.learning.framework
Class Example
java.lang.Object
aima.learning.framework.Example
public class Example
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Example
public Example(java.util.Hashtable<java.lang.String,Attribute> attributes,
Attribute targetAttribute)
getAttributeValueAsString
public java.lang.String getAttributeValueAsString(java.lang.String attributeName)
getAttributeValueAsDouble
public double getAttributeValueAsDouble(java.lang.String attributeName)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
targetValue
public java.lang.String targetValue()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
numerize
public Example numerize(java.util.Hashtable<java.lang.String,java.util.Hashtable<java.lang.String,java.lang.Integer>> attrValueToNumber)