public class UserSpecifiedAttributeSelector extends BaseAttributeSelector
Usage: <names...>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<java.lang.String> |
SelectedAttributes
Names of attributes to be used
|
trained| Constructor and Description |
|---|
UserSpecifiedAttributeSelector() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributeSpecification(java.lang.String attribute)
Add an attribute to the list of attributes to be selected
|
void |
clearSpecifiedAttributes()
Clear list of user-specified attributes
|
UserSpecifiedAttributeSelector |
clone() |
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 |
selectAttributes(java.util.List<java.lang.String> Attributes)
Define a list of attributes that will be used when training a model
|
void |
setOptions(java.util.List<java.lang.Object> OptionsObj)
Sets the object to select only attributes listed in input
|
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<java.lang.String> SelectedAttributes
public void setOptions(java.util.List<java.lang.Object> OptionsObj)
throws java.lang.Exception
OptionsObj - List of attributes to usejava.lang.Exceptionpublic java.lang.String printUsage()
Optionspublic UserSpecifiedAttributeSelector clone()
clone in class BaseAttributeSelectorpublic void clearSpecifiedAttributes()
public void addAttributeSpecification(java.lang.String attribute)
attribute - Name of attributepublic void selectAttributes(java.util.List<java.lang.String> Attributes)
Attributes - List of desired attributesprotected 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()