NominalToBinary (unsupervised)
Package
weka.filters.unsupervised.attribute
Synopsis
Converts all nominal attributes into binary numeric attributes. An attribute with k values is transformed into k binary attributes if the class is nominal (using the one-attribute-per-value approach). Binary attributes are left binary, if option '-A' is not given.If the class is numeric, you might want to use the supervised version of this filter.
Options
The table below describes the options available for NominalToBinary.
Option |
Description |
---|---|
attributeIndices |
Specify range of attributes to act 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". |
binaryAttributesNominal |
Whether resulting binary attributes will be nominal. |
invertSelection |
Set attribute selection mode. If false, only selected (numeric) attributes in the range will be discretized; if true, only non-selected attributes will be discretized. |
transformAllValues |
Whether all nominal values are turned into new attributes, not only if there are more than 2. |
Capabilities
The table below describes the capabilites of NominalToBinary.
Capability |
Supported |
---|---|
Class |
Empty nominal class, Missing class values, Binary class, Date class, Nominal class, Relational class, Numeric class, String class, Unary class, No class |
Attributes |
String attributes, Date attributes, Relational attributes, Numeric attributes, Binary attributes, Empty nominal attributes, Missing values, Unary attributes, Nominal attributes |
Min # of instances |
0 |