Overview | Package | Class | Tree | Deprecated | Index | Help | Weka's home
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## weka.gui.beans
Class TrainingSetEvent

    java.lang.Object
      java.util.EventObject
          weka.gui.beans.TrainingSetEvent

All Implemented Interfaces:
  java.io.Serializable

    public class TrainingSetEvent

extends java.util.EventObject

Event encapsulating a training set

Version:
  $Revision: 1.2 $
Author:
  Mark Hall
See Also:
  Serialized Form

Constructor Summary
`TrainingSetEvent(java.lang.Object source, Instances trainSet)` Creates a new `TrainingSetEvent`

Method Summary
`int` | `getMaxSetNumber()` Get the maximum set number
`int` | `getSetNumber()` Get the set number (eg.
`Instances` | `getTrainingSet()` Get the training instances
`boolean` | `isStructureOnly()` Returns true if the encapsulated instances contain just header information

Methods inherited from class java.util.EventObject
`getSource, toString`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### TrainingSetEvent

    public TrainingSetEvent(java.lang.Object source,
                            Instances trainSet)

  Creates a new `TrainingSetEvent`

  Parameters:
    `source` - the source of the event
    `trainSet` - the training instances

Method Detail

### getTrainingSet

    public Instances getTrainingSet()

  Get the training instances

  Returns:
    an `Instances` value

### getSetNumber

    public int getSetNumber()

  Get the set number (eg. fold 2 of a 10 fold split)

  Returns:
    an `int` value

### getMaxSetNumber

    public int getMaxSetNumber()

  Get the maximum set number

  Returns:
    an `int` value

### isStructureOnly

    public boolean isStructureOnly()

  Returns true if the encapsulated instances contain just header information

  Returns:
    true if only header information is available in this DataSetEvent

Overview | Package | Class | Tree | Deprecated | Index | Help | Weka's home
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD