aima.learning.framework
Class DataSetSpecification

java.lang.Object
  extended by aima.learning.framework.DataSetSpecification
Direct Known Subclasses:
MockDataSetSpecification

public class DataSetSpecification
extends java.lang.Object


Constructor Summary
DataSetSpecification()
           
 
Method Summary
 void defineNumericAttribute(java.lang.String name)
           
 void defineStringAttribute(java.lang.String name, java.lang.String[] attributeValues)
           
 java.util.List<java.lang.String> getAttributeNames()
           
 AttributeSpecification getAttributeSpecFor(java.lang.String name)
           
 java.util.List<java.lang.String> getNamesOfStringAttributes()
           
 java.util.List<java.lang.String> getPossibleAttributeValues(java.lang.String attributeName)
           
 java.lang.String getTarget()
           
 boolean isValid(java.util.List<java.lang.String> uncheckedAttributes)
           
 void setTarget(java.lang.String target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSetSpecification

public DataSetSpecification()
Method Detail

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()