aima.learning.framework
Class DataSetFactory

java.lang.Object
  extended by aima.learning.framework.DataSetFactory

public class DataSetFactory
extends java.lang.Object


Constructor Summary
DataSetFactory()
           
 
Method Summary
static DataSetSpecification createIrisDataSetSpec()
           
static DataSetSpecification createRestaurantDataSetSpec()
           
static Example exampleFromString(java.lang.String data, DataSetSpecification dataSetSpec, java.lang.String separator)
           
 DataSet fromFile(java.lang.String filename, DataSetSpecification spec, java.lang.String separator)
           
static DataSet getIrisDataSet()
           
static DataSet getRestaurantDataSet()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSetFactory

public DataSetFactory()
Method Detail

fromFile

public DataSet fromFile(java.lang.String filename,
                        DataSetSpecification spec,
                        java.lang.String separator)
                 throws java.lang.Exception
Throws:
java.lang.Exception

exampleFromString

public static Example exampleFromString(java.lang.String data,
                                        DataSetSpecification dataSetSpec,
                                        java.lang.String separator)

getRestaurantDataSet

public static DataSet getRestaurantDataSet()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

createRestaurantDataSetSpec

public static DataSetSpecification createRestaurantDataSetSpec()

getIrisDataSet

public static DataSet getIrisDataSet()
                              throws java.lang.Exception
Throws:
java.lang.Exception

createIrisDataSetSpec

public static DataSetSpecification createIrisDataSetSpec()