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, train
protected 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.Exception
public java.lang.String printUsage()
Options
public UserSpecifiedAttributeSelector clone()
clone
in class BaseAttributeSelector
public 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)
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()