All Packages Class Hierarchy This Package Previous Next Index WEKA's home
Class weka.gui.beans.CrossValidationFoldMaker
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----javax.swing.JComponent
|
+----javax.swing.JPanel
|
+----weka.gui.beans.AbstractTrainAndTestSetProducer
|
+----weka.gui.beans.CrossValidationFoldMaker
- public class CrossValidationFoldMaker
- extends AbstractTrainAndTestSetProducer
- implements DataSourceListener, TrainingSetListener, TestSetListener, UserRequestAcceptor, EventConstraints, java.io.Serializable
Bean for splitting instances into training ant test sets according to
a cross validation
- Version:
- $Revision: 1.3 $
- Author:
- Mark Hall
CrossValidationFoldMaker()
-
acceptDataSet(DataSetEvent)
- Accept a data set
acceptTestSet(TestSetEvent)
- Accept a test set
acceptTrainingSet(TrainingSetEvent)
- Accept a training set
enumerateRequests()
- Return an enumeration of user requests
eventGeneratable(String)
- Returns true, if at the current time, the named event could
be generated.
foldsTipText()
- Tip text for this property
getFolds()
- Get the currently set number of folds
getSeed()
- Get the currently set seed
globalInfo()
- Global info for this bean
performRequest(String)
- Perform the named request
seedTipText()
- Tip text for this property
setFolds(int)
- Set the number of folds for the cross validation
setSeed(int)
- Set the seed
stop()
- Stop any action
CrossValidationFoldMaker
public CrossValidationFoldMaker()
globalInfo
public java.lang.String globalInfo()
Global info for this bean
- Returns:
- a
String 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
setFolds
public void setFolds(int numFolds)
Set the number of folds for the cross validation
- Parameters:
numFolds - an int value
getFolds
public int getFolds()
Get the currently set number of folds
- Returns:
- an
int value
foldsTipText
public java.lang.String foldsTipText()
Tip text for this property
- Returns:
- a
String value
setSeed
public void setSeed(int randomSeed)
Set the seed
- Parameters:
randomSeed - an int value
getSeed
public int getSeed()
Get the currently set seed
- Returns:
- an
int value
seedTipText
public java.lang.String seedTipText()
Tip text for this property
- Returns:
- a
String value
stop
public void stop()
Stop any action
- Overrides:
- stop in class AbstractTrainAndTestSetProducer
enumerateRequests
public java.util.Enumeration enumerateRequests()
Return an enumeration 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