Serializable, weka.core.CapabilitiesHandler, weka.core.OptionHandler, AttributeWeightsModifierpublic class FromFile extends AbstractAttributeWeightsModifier
-weights <file> The file with weights (one per line) (default: .)
-do-not-check-capabilities If set, modifier capabilities are not checked (use with caution).
| Constructor | Description |
|---|---|
FromFile() |
| 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.
|
File |
getWeightsFile() |
Get the file with the weights.
|
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 |
setWeightsFile(File value) |
Sets the file with the weights.
|
String |
weightsFileTipText() |
Returns the tip text for this property.
|
doNotCheckCapabilitiesTipText, getCapabilities, getCapabilities, getDoNotCheckCapabilities, modifyAttributeWeights, setDoNotCheckCapabilitiespublic String globalInfo()
globalInfo in class AbstractAttributeWeightsModifierpublic Enumeration<weka.core.Option> listOptions()
listOptions in interface weka.core.OptionHandlerlistOptions in class AbstractAttributeWeightsModifierpublic void setOptions(String[] options) throws Exception
setOptions in interface weka.core.OptionHandlersetOptions in class AbstractAttributeWeightsModifieroptions - 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 AbstractAttributeWeightsModifierpublic void setWeightsFile(File value)
value - the filepublic File getWeightsFile()
public String weightsFileTipText()
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.