public class DataTransformProcess extends Object implements DataTransform, Parameterized
Constructor and Description |
---|
DataTransformProcess()
Creates a new transform process that is empty.
|
DataTransformProcess(DataTransform... transforms)
Creates a new transform process from the listed factories, which will be
applied in order by index.
|
Modifier and Type | Method and Description |
---|---|
void |
addTransform(DataTransform transform)
Adds a transform to the list of transforms.
|
DataTransformProcess |
clone() |
void |
fit(DataSet data)
Fits this transform to the given dataset.
|
int |
getNumberOfTransforms() |
Parameter |
getParameter(String paramName)
Returns the parameter with the given name.
|
List<Parameter> |
getParameters()
Returns the list of parameters that can be altered for this learner.
|
void |
leanTransforms(DataSet dataSet)
Learns the transforms for the given data set.
|
void |
learnApplyTransforms(DataSet dataSet)
Learns the transforms for the given data set.
|
DataPoint |
transform(DataPoint dp)
Returns a new data point that is a transformation of the original data
point.
|
public DataTransformProcess()
#addTransform(jsat.datatransform.DataTransformFactory)
.public DataTransformProcess(DataTransform... transforms)
transforms
- the array of factories to apply as the data transform processpublic void addTransform(DataTransform transform)
transform
- the factory for the transform to addpublic int getNumberOfTransforms()
public void fit(DataSet data)
DataTransform
FailedToFitException
exception may be
thrown.fit
in interface DataTransform
data
- the dataset to fir this transform topublic void leanTransforms(DataSet dataSet)
dataSet
- the data set to learn a series of transforms frompublic void learnApplyTransforms(DataSet dataSet)
learnApplyTransforms(jsat.DataSet)
on the data set and then
calling DataSet.applyTransform(jsat.datatransform.DataTransform)
with this DataTransformProces.dataSet
- the data set to learn a series of transforms from and
alter into the final transformed formpublic DataPoint transform(DataPoint dp)
DataTransform
transform
in interface DataTransform
dp
- the data point to apply a transformation topublic DataTransformProcess clone()
clone
in interface DataTransform
clone
in class Object
public List<Parameter> getParameters()
Parameterized
getParameters
in interface Parameterized
public Parameter getParameter(String paramName)
Parameterized
getParameter
in interface Parameterized
paramName
- the name of the parameter to obtainCopyright © 2017. All rights reserved.