Serializable, weka.core.CapabilitiesHandler, weka.core.OptionHandler, InstanceWeightsModifierpublic class FixedValue extends AbstractRangeBasedInstanceWeightsModifier
-weight <number> The instance weight to use. (default: 1.0)
-R <range> The row range to work on. This is a comma separated list of row 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, modifyInstanceWeights, setDoNotCheckCapabilitiesgetRowIndices, rowIndicesTipText, setRowIndicespublic String globalInfo()
globalInfo in class AbstractInstanceWeightsModifierpublic Enumeration<weka.core.Option> listOptions()
listOptions in interface weka.core.OptionHandlerlistOptions in class AbstractRangeBasedInstanceWeightsModifierpublic void setOptions(String[] options) throws Exception
setOptions in interface weka.core.OptionHandlersetOptions in class AbstractRangeBasedInstanceWeightsModifieroptions - 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 AbstractRangeBasedInstanceWeightsModifierpublic 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.