Serializable, weka.core.CapabilitiesHandler, weka.core.OptionHandler, InstanceWeightsModifierpublic class FromAttribute extends AbstractInstanceWeightsModifier
-C <index> Specify the index of the attribute with the weights. First and last are valid indexes.(default: last)
-do-not-check-capabilities If set, modifier capabilities are not checked (use with caution).
| Constructor | Description |
|---|---|
FromAttribute() |
| Modifier and Type | Method | Description |
|---|---|---|
String |
attributeIndexTipText() |
Returns the tip text for this property.
|
weka.core.Instances |
determineOutputFormat(weka.core.Instances inputFormat) |
Returns the new output format.
|
String |
getAttributeIndex() |
Get the index of the attribute with the weights.
|
String[] |
getOptions() |
Gets the current settings of the filter.
|
String |
globalInfo() |
Returns a string describing this scheme.
|
Enumeration<weka.core.Option> |
listOptions() |
Returns an enumeration describing the available options.
|
void |
setAttributeIndex(String value) |
Sets index of the attribute with the weights.
|
void |
setOptions(String[] options) |
Parses a given list of options.
|
doNotCheckCapabilitiesTipText, getCapabilities, getCapabilities, getDoNotCheckCapabilities, modifyInstanceWeights, setDoNotCheckCapabilitiespublic String globalInfo()
globalInfo in class AbstractInstanceWeightsModifierpublic Enumeration<weka.core.Option> listOptions()
listOptions in interface weka.core.OptionHandlerlistOptions in class AbstractInstanceWeightsModifierpublic void setOptions(String[] options) throws Exception
setOptions in interface weka.core.OptionHandlersetOptions in class AbstractInstanceWeightsModifieroptions - the list of options as an array of stringsException - if an option is not supportedpublic String[] getOptions()
getOptions in interface weka.core.OptionHandlergetOptions in class AbstractInstanceWeightsModifierpublic void setAttributeIndex(String value)
value - the index of the attributepublic String getAttributeIndex()
public String attributeIndexTipText()
public weka.core.Instances determineOutputFormat(weka.core.Instances inputFormat)
throws Exception
inputFormat - the input format, before applying the weightsException - if determination failsCopyright © 2018 University of Waikato, Hamilton, NZ. All Rights Reserved.