aima.learning.framework
Class DataSetSpecification
java.lang.Object
aima.learning.framework.DataSetSpecification
- Direct Known Subclasses:
- MockDataSetSpecification
public class DataSetSpecification
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataSetSpecification
public DataSetSpecification()
isValid
public boolean isValid(java.util.List<java.lang.String> uncheckedAttributes)
getTarget
public java.lang.String getTarget()
- Returns:
- Returns the targetAttribute.
getPossibleAttributeValues
public java.util.List<java.lang.String> getPossibleAttributeValues(java.lang.String attributeName)
getAttributeNames
public java.util.List<java.lang.String> getAttributeNames()
defineStringAttribute
public void defineStringAttribute(java.lang.String name,
java.lang.String[] attributeValues)
setTarget
public void setTarget(java.lang.String target)
- Parameters:
target
- The targetAttribute to set.
getAttributeSpecFor
public AttributeSpecification getAttributeSpecFor(java.lang.String name)
defineNumericAttribute
public void defineNumericAttribute(java.lang.String name)
getNamesOfStringAttributes
public java.util.List<java.lang.String> getNamesOfStringAttributes()