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

Constructor Index

 o CrossValidationFoldMaker()
 

Method Index

 o acceptDataSet(DataSetEvent)
Accept a data set
 o acceptTestSet(TestSetEvent)
Accept a test set
 o acceptTrainingSet(TrainingSetEvent)
Accept a training set
 o enumerateRequests()
Return an enumeration of user requests
 o eventGeneratable(String)
Returns true, if at the current time, the named event could be generated.
 o foldsTipText()
Tip text for this property
 o getFolds()
Get the currently set number of folds
 o getSeed()
Get the currently set seed
 o globalInfo()
Global info for this bean
 o performRequest(String)
Perform the named request
 o seedTipText()
Tip text for this property
 o setFolds(int)
Set the number of folds for the cross validation
 o setSeed(int)
Set the seed
 o stop()
Stop any action

Constructor Detail

 o CrossValidationFoldMaker
public CrossValidationFoldMaker()

Method Detail

 o globalInfo
public java.lang.String globalInfo()
          Global info for this bean
Returns:
a String value
 o acceptTrainingSet
public void acceptTrainingSet(TrainingSetEvent e)
          Accept a training set
Parameters:
e - a TrainingSetEvent value
 o acceptTestSet
public void acceptTestSet(TestSetEvent e)
          Accept a test set
Parameters:
e - a TestSetEvent value
 o acceptDataSet
public void acceptDataSet(DataSetEvent e)
          Accept a data set
Parameters:
e - a DataSetEvent value
Overrides:
acceptDataSet in class AbstractTrainAndTestSetProducer
 o setFolds
public void setFolds(int numFolds)
          Set the number of folds for the cross validation
Parameters:
numFolds - an int value
 o getFolds
public int getFolds()
          Get the currently set number of folds
Returns:
an int value
 o foldsTipText
public java.lang.String foldsTipText()
          Tip text for this property
Returns:
a String value
 o setSeed
public void setSeed(int randomSeed)
          Set the seed
Parameters:
randomSeed - an int value
 o getSeed
public int getSeed()
          Get the currently set seed
Returns:
an int value
 o seedTipText
public java.lang.String seedTipText()
          Tip text for this property
Returns:
a String value
 o stop
public void stop()
          Stop any action
Overrides:
stop in class AbstractTrainAndTestSetProducer
 o enumerateRequests
public java.util.Enumeration enumerateRequests()
          Return an enumeration of user requests
Returns:
an Enumeration value
 o 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
 o 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