All Packages Class Hierarchy This Package Previous Next Index WEKA's home
Class weka.gui.beans.TrainTestSplitMaker
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----javax.swing.JComponent
|
+----javax.swing.JPanel
|
+----weka.gui.beans.AbstractTrainAndTestSetProducer
|
+----weka.gui.beans.TrainTestSplitMaker
- public class TrainTestSplitMaker
- extends AbstractTrainAndTestSetProducer
- implements DataSourceListener, TrainingSetListener, TestSetListener, UserRequestAcceptor, EventConstraints, java.io.Serializable
Bean that accepts data sets, training sets, test sets and produces
both a training and test set by randomly spliting the data
- Version:
- 1.0
- Author:
- Mark Hall
TrainTestSplitMaker()
-
acceptDataSet(DataSetEvent)
- Accept a data set
acceptTestSet(TestSetEvent)
- Accept a test set
acceptTrainingSet(TrainingSetEvent)
- Accept a training set
enumerateRequests()
- Get list of user requests
eventGeneratable(String)
- Returns true, if at the current time, the named event could
be generated.
getSeed()
- Get the value of the random seed
getTrainPercent()
- Get the percentage of the data that will be in the training portion of
the split
globalInfo()
- Global info for this bean
performRequest(String)
- Perform the named request
seedTipText()
- Tip text for this property
setSeed(int)
- Set the random seed
setTrainPercent(int)
- Set the percentage of data to be in the training portion of the split
stop()
- Stop processing
trainPercentTipText()
- Tip text info for this property
TrainTestSplitMaker
public TrainTestSplitMaker()
globalInfo
public java.lang.String globalInfo()
Global info for this bean
- Returns:
- a
String value
trainPercentTipText
public java.lang.String trainPercentTipText()
Tip text info for this property
- Returns:
- a
String value
setTrainPercent
public void setTrainPercent(int newTrainPercent)
Set the percentage of data to be in the training portion of the split
- Parameters:
newTrainPercent - an int value
getTrainPercent
public int getTrainPercent()
Get the percentage of the data that will be in the training portion of
the split
- Returns:
- an
int value
seedTipText
public java.lang.String seedTipText()
Tip text for this property
- Returns:
- a
String value
setSeed
public void setSeed(int newSeed)
Set the random seed
- Parameters:
newSeed - an int value
getSeed
public int getSeed()
Get the value of the random seed
- Returns:
- an
int value
acceptTrainingSet
public void acceptTrainingSet(TrainingSetEvent e)
Accept a training set
- Parameters:
e - a TrainingSetEvent value
acceptTestSet
public void acceptTestSet(TestSetEvent e)
Accept a test set
- Parameters:
e - a TestSetEvent value
acceptDataSet
public void acceptDataSet(DataSetEvent e)
Accept a data set
- Parameters:
e - a DataSetEvent value
- Overrides:
- acceptDataSet in class AbstractTrainAndTestSetProducer
stop
public void stop()
Stop processing
- Overrides:
- stop in class AbstractTrainAndTestSetProducer
enumerateRequests
public java.util.Enumeration enumerateRequests()
Get list of user requests
- Returns:
- an
Enumeration value
performRequest
public void performRequest(java.lang.String request)
Perform the named request
- Parameters:
request - a String value
- Throws:
- java.lang.IllegalArgumentException - if an error occurs
eventGeneratable
public boolean eventGeneratable(java.lang.String eventName)
Returns true, if at the current time, the named event could
be generated. Assumes that the supplied event name is
an event that could be generated by this bean
- Parameters:
eventName - the name of the event in question
- Returns:
- true if the named event could be generated at this point in
time
All Packages Class Hierarchy This Package Previous Next Index WEKA's home