@Deprecated public class MultilayerPerceptron extends NeuralNetwork implements OnlineLearner
NeuralNetwork.TrainingMethodcostFunctionName, DEFAULT_LEARNING_RATE, DEFAULT_MOMENTUM_WEIGHT, DEFAULT_REGULARIZATION_WEIGHT, finalLayerIndex, layerSizeList, learningRate, modelPath, modelType, momentumWeight, prevWeightUpdatesList, regularizationWeight, squashingFunctionList, trainingMethod, weightMatrixList| Constructor and Description |
|---|
MultilayerPerceptron()
Deprecated.
The default constructor.
|
MultilayerPerceptron(String modelPath)
Deprecated.
Initialize the MLP by specifying the location of the model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
Prepares the classifier for classification and deallocates any temporary data structures.
|
void |
train(int actual,
Vector instance)
Deprecated.
Updates the model using a particular target variable value and a feature vector.
|
void |
train(long trackingKey,
int actual,
Vector instance)
Deprecated.
Updates the model using a particular target variable value and a feature vector.
|
void |
train(long trackingKey,
String groupKey,
int actual,
Vector instance)
Deprecated.
Updates the model using a particular target variable value and a feature vector.
|
addLayer, forward, getLayerSize, getLayerSizeList, getLearningRate, getModelPath, getModelType, getMomentumWeight, getOutput, getOutputInternal, getRegularizationWeight, getTrainingMethod, getWeightMatrices, getWeightsByLayer, readFields, readFromModel, setCostFunction, setLearningRate, setModelPath, setMomentumWeight, setRegularizationWeight, setTrainingMethod, setWeightMatrices, setWeightMatrix, trainByInstance, trainOnline, updateWeightMatrices, write, writeModelToFilepublic MultilayerPerceptron()
public MultilayerPerceptron(String modelPath) throws IOException
modelPath - The path of the model.IOExceptionpublic void train(int actual,
Vector instance)
OnlineLearnertrain in interface OnlineLearneractual - The value of the target variable. This value should be in the half-open
interval [0..n) where n is the number of target categories.instance - The feature vector for this example.public void train(long trackingKey,
String groupKey,
int actual,
Vector instance)
OnlineLearnertrain in interface OnlineLearnertrackingKey - The tracking key for this training example.groupKey - An optional value that allows examples to be grouped in the computation of
the update to the model.actual - The value of the target variable. This value should be in the half-open
interval [0..n) where n is the number of target categories.instance - The feature vector for this example.public void train(long trackingKey,
int actual,
Vector instance)
OnlineLearnertrain in interface OnlineLearnertrackingKey - The tracking key for this training example.actual - The value of the target variable. This value should be in the half-open
interval [0..n) where n is the number of target categories.instance - The feature vector for this example.public void close()
OnlineLearnerclose in interface Closeableclose in interface AutoCloseableclose in interface OnlineLearnerCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.