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, trainprotected java.util.List<BaseAttributeSelector> Selectors
public BaseAttributeSelector clone()
clone in class BaseAttributeSelectorpublic void setOptions(java.util.List<java.lang.Object> Options)
throws java.lang.Exception
OptionssetOptions in interface OptionsOptions - Array of options as Objects - can be nulljava.lang.Exception - if problem with inputspublic java.lang.String printUsage()
OptionsprintUsage in interface Optionspublic 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)
BaseAttributeSelectortrain_protected in class BaseAttributeSelectordata - Dataset used to train selectorpublic java.lang.String printDescription(boolean htmlFormat)
PrintableExample: For a model training a separate WekaRegression for intermetallics
magpie.models.regression.SplitRegression
printDescription in interface PrintableprintDescription in class BaseAttributeSelectorhtmlFormat - 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()
CitablegetCitations in interface Citable