public class StagedAttributeSelector extends BaseAttributeSelector implements Citable
Usage: $<selectors...>
Modifier and Type | Field and Description |
---|---|
protected java.util.List<BaseAttributeSelector> |
Selectors
List of attribute selectors to use for selection.
|
trained
Constructor and Description |
---|
StagedAttributeSelector() |
Modifier and Type | Method and Description |
---|---|
void |
addSelector(BaseAttributeSelector selector)
Add new selector to list, will be run last
|
void |
clearSelectorList()
Clear the list of selectors
|
BaseAttributeSelector |
clone() |
java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.String,Citation>> |
getCitations()
Return a list of citations for this object and any underlying objects.
|
java.util.List<BaseAttributeSelector> |
getSelectors()
Get the current list of selectors
|
java.lang.String |
printDescription(boolean htmlFormat)
Print full name of object, and a simple description of the options.
|
java.lang.String |
printUsage()
Print out required format for options.
|
void |
setOptions(java.util.List<java.lang.Object> Options)
Set any options for this object.
|
void |
setSelectors(java.util.List<BaseAttributeSelector> selectors)
Set the list of selectors used by this tool
|
protected java.util.List<java.lang.Integer> |
train_protected(Dataset data)
Operation that actually does the work for training.
|
about, applyAttributeSelection, getSelectionNames, getSelections, isTrained, printCommand, printSelections, run, runCommand, train
protected java.util.List<BaseAttributeSelector> Selectors
public BaseAttributeSelector clone()
clone
in class BaseAttributeSelector
public void setOptions(java.util.List<java.lang.Object> Options) throws java.lang.Exception
Options
setOptions
in interface Options
Options
- Array of options as Objects - can be null
java.lang.Exception
- if problem with inputspublic java.lang.String printUsage()
Options
printUsage
in interface Options
public void clearSelectorList()
public void setSelectors(java.util.List<BaseAttributeSelector> selectors)
selectors
- List of selectors in desired orderpublic void addSelector(BaseAttributeSelector selector)
selector
- Selector to addpublic java.util.List<BaseAttributeSelector> getSelectors()
protected java.util.List<java.lang.Integer> train_protected(Dataset data)
BaseAttributeSelector
train_protected
in class BaseAttributeSelector
data
- Dataset used to train selectorpublic java.lang.String printDescription(boolean htmlFormat)
Printable
Example: For a model training a separate WekaRegression for intermetallics
magpie.models.regression.SplitRegression
printDescription
in interface Printable
printDescription
in class BaseAttributeSelector
htmlFormat
- Whether format for output to an HTML page
(e.g., <div> to create indentation) or for printing to screen.#printModel()
public java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.String,Citation>> getCitations()
Citable
getCitations
in interface Citable