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