|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcosc575.p1.TrainTestSets
public class TrainTestSets
Implements a class for storing training and testing sets for machine-learning methods.
Field Summary | |
---|---|
protected DataSet |
test
the testing examples |
protected DataSet |
train
the training examples |
Constructor Summary | |
---|---|
TrainTestSets()
Default constructor. |
|
TrainTestSets(DataSet train,
DataSet test)
Explicit constructor that sets the training and testing sets to the specified data sets. |
|
TrainTestSets(java.lang.String[] args)
Explicit constructor that processes the specified arguments. |
Method Summary | |
---|---|
DataSet |
getTestingSet()
Returns the testing set of this train/test set. |
DataSet |
getTrainingSet()
Returns the training set of this train/test set. |
static void |
main(java.lang.String[] args)
|
void |
setOptions(java.lang.String[] args)
Sets the options for this train/test set. |
void |
setTestingSet(DataSet test)
Sets the testing set of this train/test set to the specified data set. |
void |
setTrainingSet(DataSet train)
Sets the training set of this train/test set to the specified data set. |
java.lang.String |
toString()
Returns a string representation of this train/test set in a format similar to that of the file format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected DataSet train
protected DataSet test
Constructor Detail |
---|
public TrainTestSets()
public TrainTestSets(java.lang.String[] args) throws java.lang.Exception
args
- the arguments for this train/test set
java.lang.Exception
- if an exception occurspublic TrainTestSets(DataSet train, DataSet test) throws java.lang.Exception
train
- the training settest
- the testing set
java.lang.Exception
- if an exception occursMethod Detail |
---|
public DataSet getTrainingSet()
public DataSet getTestingSet()
public void setTrainingSet(DataSet train)
train
- the specified training setpublic void setTestingSet(DataSet test) throws java.lang.Exception
test
- the specified testing set
java.lang.Exception
public void setOptions(java.lang.String[] args) throws java.lang.Exception
setOptions
in interface OptionHandler
args
- the arguments
java.lang.Exception
- if an exception occurspublic java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |