public class Nominal2Binary extends Object implements Feature<double[]>
| Constructor and Description |
|---|
Nominal2Binary(Attribute[] attributes)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Attribute[] |
attributes()
Returns the variable attributes of generated features.
|
double |
f(double[] object,
int id)
Generates a feature for given object.
|
public Nominal2Binary(Attribute[] attributes)
attributes - the variable attributes. Of which, nominal variables
will be converted to binary dummy variables.public Attribute[] attributes()
Featureattributes in interface Feature<double[]>Copyright © 2015. All rights reserved.