Package adams.flow.container
Class WekaAttributeSelectionContainer
- java.lang.Object
-
- adams.flow.container.AbstractContainer
-
- adams.flow.container.WekaAttributeSelectionContainer
-
- All Implemented Interfaces:
adams.core.CloneHandler<adams.flow.container.Container>
,adams.core.GlobalInfoSupporter
,adams.data.spreadsheet.SpreadSheetSupporter
,adams.flow.container.Container
,Serializable
public class WekaAttributeSelectionContainer extends adams.flow.container.AbstractContainer
A container for storing results from attribute selection.
In case of performing cross-validation: seed and fold count get stored as well.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
VALUE_EVALUATION
the identifier for the evaluation object.static String
VALUE_FOLD_COUNT
the identifier for the fold count.static String
VALUE_REDUCED
the identifier for the reduced data.static String
VALUE_SEED
the identifier for the random seed.static String
VALUE_SELECTEDATTRIBUTES
the identifier for the Remove filter setup.static String
VALUE_STATISTICS
the identifier for the statistics object.static String
VALUE_TEST
the identifier for the test data.static String
VALUE_TEST_REDUCED
the identifier for the reduced data.static String
VALUE_TEST_TRANSFORMED
the identifier for the transformed data.static String
VALUE_TRAIN
the identifier for the training data.static String
VALUE_TRANSFORMED
the identifier for the transformed data.
-
Constructor Summary
Constructors Modifier Constructor Description WekaAttributeSelectionContainer()
Initializes the container.WekaAttributeSelectionContainer(weka.core.Instances train, weka.core.Instances reduced, weka.core.Instances transformed, weka.attributeSelection.AttributeSelection eval, adams.data.spreadsheet.SpreadSheet statistics, String range)
Initializes the container.protected
WekaAttributeSelectionContainer(weka.core.Instances train, weka.core.Instances reduced, weka.core.Instances transformed, weka.attributeSelection.AttributeSelection eval, adams.data.spreadsheet.SpreadSheet statistics, String range, Long seed, Integer foldCount)
Initializes the container.WekaAttributeSelectionContainer(weka.core.Instances train, weka.core.Instances reduced, weka.core.Instances transformed, weka.attributeSelection.AttributeSelection eval, Long seed, Integer foldCount)
Initializes the container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initHelp()
Initializes the help strings.boolean
isValid()
Checks whether the setup of the container is valid.Iterator<String>
names()
Returns all value names that can be used (theoretically).
-
-
-
Field Detail
-
VALUE_TRAIN
public static final String VALUE_TRAIN
the identifier for the training data.- See Also:
- Constant Field Values
-
VALUE_REDUCED
public static final String VALUE_REDUCED
the identifier for the reduced data.- See Also:
- Constant Field Values
-
VALUE_TRANSFORMED
public static final String VALUE_TRANSFORMED
the identifier for the transformed data.- See Also:
- Constant Field Values
-
VALUE_TEST
public static final String VALUE_TEST
the identifier for the test data.- See Also:
- Constant Field Values
-
VALUE_TEST_REDUCED
public static final String VALUE_TEST_REDUCED
the identifier for the reduced data.- See Also:
- Constant Field Values
-
VALUE_TEST_TRANSFORMED
public static final String VALUE_TEST_TRANSFORMED
the identifier for the transformed data.- See Also:
- Constant Field Values
-
VALUE_EVALUATION
public static final String VALUE_EVALUATION
the identifier for the evaluation object.- See Also:
- Constant Field Values
-
VALUE_STATISTICS
public static final String VALUE_STATISTICS
the identifier for the statistics object.- See Also:
- Constant Field Values
-
VALUE_SELECTEDATTRIBUTES
public static final String VALUE_SELECTEDATTRIBUTES
the identifier for the Remove filter setup.- See Also:
- Constant Field Values
-
VALUE_SEED
public static final String VALUE_SEED
the identifier for the random seed.- See Also:
- Constant Field Values
-
VALUE_FOLD_COUNT
public static final String VALUE_FOLD_COUNT
the identifier for the fold count.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WekaAttributeSelectionContainer
public WekaAttributeSelectionContainer()
Initializes the container.
Only used for generating help information.
-
WekaAttributeSelectionContainer
public WekaAttributeSelectionContainer(weka.core.Instances train, weka.core.Instances reduced, weka.core.Instances transformed, weka.attributeSelection.AttributeSelection eval, adams.data.spreadsheet.SpreadSheet statistics, String range)
Initializes the container.- Parameters:
train
- the training setreduced
- the reduced datatransformed
- the transformed dataeval
- the attribute selection evaluation objectstatistics
- the spreadsheet with the statisticsrange
- the range string of selected attributes
-
WekaAttributeSelectionContainer
public WekaAttributeSelectionContainer(weka.core.Instances train, weka.core.Instances reduced, weka.core.Instances transformed, weka.attributeSelection.AttributeSelection eval, Long seed, Integer foldCount)
Initializes the container.- Parameters:
train
- the training setreduced
- the reduced datatransformed
- the transformed dataeval
- the attribute selection evaluation objectseed
- the seed value, can be nullfoldCount
- the fold count
-
WekaAttributeSelectionContainer
protected WekaAttributeSelectionContainer(weka.core.Instances train, weka.core.Instances reduced, weka.core.Instances transformed, weka.attributeSelection.AttributeSelection eval, adams.data.spreadsheet.SpreadSheet statistics, String range, Long seed, Integer foldCount)
Initializes the container.- Parameters:
train
- the training setreduced
- the reduced datatransformed
- the transformed dataeval
- the attribute selection evaluation objectstatistics
- the spreadsheet with the statisticsrange
- the range string of selected attributesseed
- the seed value, can be nullfoldCount
- the fold count
-
-
Method Detail
-
initHelp
protected void initHelp()
Initializes the help strings.- Overrides:
initHelp
in classadams.flow.container.AbstractContainer
-
names
public Iterator<String> names()
Returns all value names that can be used (theoretically).- Specified by:
names
in interfaceadams.flow.container.Container
- Specified by:
names
in classadams.flow.container.AbstractContainer
- Returns:
- enumeration over all possible value names
-
isValid
public boolean isValid()
Checks whether the setup of the container is valid.- Specified by:
isValid
in interfaceadams.flow.container.Container
- Specified by:
isValid
in classadams.flow.container.AbstractContainer
- Returns:
- true if all the necessary values are available
-
-