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

Constructor Index

 o TrainTestSplitMaker()
 

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()
Get list of user requests
 o eventGeneratable(String)
Returns true, if at the current time, the named event could be generated.
 o getSeed()
Get the value of the random seed
 o getTrainPercent()
Get the percentage of the data that will be in the training portion of the split
 o globalInfo()
Global info for this bean
 o performRequest(String)
Perform the named request
 o seedTipText()
Tip text for this property
 o setSeed(int)
Set the random seed
 o setTrainPercent(int)
Set the percentage of data to be in the training portion of the split
 o stop()
Stop processing
 o trainPercentTipText()
Tip text info for this property

Constructor Detail

 o TrainTestSplitMaker
public TrainTestSplitMaker()

Method Detail

 o globalInfo
public java.lang.String globalInfo()
          Global info for this bean
Returns:
a String value
 o trainPercentTipText
public java.lang.String trainPercentTipText()
          Tip text info for this property
Returns:
a String value
 o 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
 o getTrainPercent
public int getTrainPercent()
          Get the percentage of the data that will be in the training portion of the split
Returns:
an int value
 o seedTipText
public java.lang.String seedTipText()
          Tip text for this property
Returns:
a String value
 o setSeed
public void setSeed(int newSeed)
          Set the random seed
Parameters:
newSeed - an int value
 o getSeed
public int getSeed()
          Get the value of the random seed
Returns:
an int 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 stop
public void stop()
          Stop processing
Overrides:
stop in class AbstractTrainAndTestSetProducer
 o enumerateRequests
public java.util.Enumeration enumerateRequests()
          Get list 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