Serializable, weka.core.CapabilitiesHandler, weka.core.OptionHandler, AttributeWeightsModifierpublic class FixedValue extends AbstractRangeBasedAttributeWeightsModifier
-weight <number> The attribute weight to use. (default: 1.0)
-R <range> The attribute range to work on. This is a comma separated list of attribute indices, with "first" and "last" valid values. Specify an inclusive range with "-". E.g: "first-3,5,6-10,last". (default: first-last)
-do-not-check-capabilities If set, modifier capabilities are not checked (use with caution).
| Constructor | Description |
|---|---|
FixedValue() |
| Modifier and Type | Method | Description |
|---|---|---|
weka.core.Instances |
determineOutputFormat(weka.core.Instances inputFormat) |
Returns the new output format.
|
String[] |
getOptions() |
Gets the current settings of the filter.
|
double |
getWeight() |
Gets the current weight.
|
String |
globalInfo() |
Returns a string describing this scheme.
|
Enumeration<weka.core.Option> |
listOptions() |
Returns an enumeration describing the available options.
|
void |
setOptions(String[] options) |
Parses a given list of options.
|
void |
setWeight(double value) |
Sets the weight to use.
|
String |
weightTipText() |
Returns the tip text for this property.
|
doNotCheckCapabilitiesTipText, getCapabilities, getCapabilities, getDoNotCheckCapabilities, modifyAttributeWeights, setDoNotCheckCapabilitiesattributeIndicesTipText, getAttributeIndices, setAttributeIndicespublic String globalInfo()
globalInfo in class AbstractAttributeWeightsModifierpublic Enumeration<weka.core.Option> listOptions()
listOptions in interface weka.core.OptionHandlerlistOptions in class AbstractRangeBasedAttributeWeightsModifierpublic void setOptions(String[] options) throws Exception
setOptions in interface weka.core.OptionHandlersetOptions in class AbstractRangeBasedAttributeWeightsModifieroptions - 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 AbstractRangeBasedAttributeWeightsModifierpublic void setWeight(double value)
value - the weightpublic double getWeight()
public String weightTipText()
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.