public class NominalToNumeric extends Object implements DataTransform
Constructor and Description |
---|
NominalToNumeric()
Creates a new transform to convert categorical to numeric features
|
NominalToNumeric(DataSet dataSet)
Creates a new transform to convert categorical to numeric features for the given dataset
|
NominalToNumeric(NominalToNumeric toCopy)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
NominalToNumeric |
clone() |
void |
fit(DataSet data)
Fits this transform to the given dataset.
|
DataPoint |
transform(DataPoint dp)
Returns a new data point that is a transformation of the original data
point.
|
public NominalToNumeric()
public NominalToNumeric(DataSet dataSet)
dataSet
- the dataset to fit the transform topublic NominalToNumeric(NominalToNumeric toCopy)
toCopy
- the object to copypublic void fit(DataSet data)
DataTransform
FailedToFitException
exception may be
thrown.fit
in interface DataTransform
data
- the dataset to fir this transform topublic DataPoint transform(DataPoint dp)
DataTransform
transform
in interface DataTransform
dp
- the data point to apply a transformation topublic NominalToNumeric clone()
clone
in interface DataTransform
clone
in class Object
Copyright © 2017. All rights reserved.