org.jdmp.core.algorithm.classification.mlp
Class MultiLayerNetwork
java.lang.Object
org.jdmp.core.AbstractCoreObject
org.jdmp.core.algorithm.AbstractAlgorithm
org.jdmp.core.algorithm.regression.AbstractRegressor
org.jdmp.core.algorithm.classification.AbstractClassifier
org.jdmp.core.algorithm.classification.mlp.MultiLayerNetwork
- All Implemented Interfaces:
- Serializable, Cloneable, Algorithm, Classifier, HasAlgorithmMap, HasAlgorithms, Regressor, CoreObject, HasVariableMap, HasVariables, Clearable, HasDescription, HasGUIObject, HasLabel
public class MultiLayerNetwork
- extends AbstractClassifier
- See Also:
- Serialized Form
|
Constructor Summary |
MultiLayerNetwork(int... neuronCount)
|
MultiLayerNetwork(MultiLayerNetwork.Aggregation aggregation,
int... neuronCount)
|
MultiLayerNetwork(MultiLayerNetwork.Aggregation aggregation,
MultiLayerNetwork.BiasType bias,
int... neuronCount)
|
MultiLayerNetwork(MultiLayerNetwork.Aggregation aggregation,
MultiLayerNetwork.Transfer transfer,
int... neuronCount)
|
MultiLayerNetwork(MultiLayerNetwork.Aggregation aggregation,
MultiLayerNetwork.Transfer transfer,
MultiLayerNetwork.BiasType biasType,
int... neurons)
|
MultiLayerNetwork(MultiLayerNetwork.Aggregation aggregationInput,
MultiLayerNetwork.Transfer transferInput,
MultiLayerNetwork.BiasType biasInput,
MultiLayerNetwork.Aggregation aggregationDefault,
MultiLayerNetwork.Transfer transferDefault,
MultiLayerNetwork.BiasType biasDefault,
MultiLayerNetwork.Aggregation aggregationOutput,
MultiLayerNetwork.Transfer transferOutput,
MultiLayerNetwork.BiasType biasOutput,
int... hiddenNeurons)
|
| Methods inherited from class org.jdmp.core.algorithm.AbstractAlgorithm |
addVariableKey, calculate, calculate, calculate, calculate, calculateObjects, calculateObjects, calculateObjects, clear, getAlgorithms, getAsString, getDescription, getEdgeDirection, getEdgeLabel, getGUIObject, getInputKeys, getLabel, getMatrix, getOutputKeys, getVariableKeys, getVariables, notifyGUIObject, setAlgorithm, setDescription, setEdgeDirection, setEdgeLabel, setLabel, setMatrix, setObject, setVariable, setVariables, setVariables, toString |
MultiLayerNetwork
public MultiLayerNetwork(MultiLayerNetwork.Aggregation aggregationInput,
MultiLayerNetwork.Transfer transferInput,
MultiLayerNetwork.BiasType biasInput,
MultiLayerNetwork.Aggregation aggregationDefault,
MultiLayerNetwork.Transfer transferDefault,
MultiLayerNetwork.BiasType biasDefault,
MultiLayerNetwork.Aggregation aggregationOutput,
MultiLayerNetwork.Transfer transferOutput,
MultiLayerNetwork.BiasType biasOutput,
int... hiddenNeurons)
MultiLayerNetwork
public MultiLayerNetwork(int... neuronCount)
MultiLayerNetwork
public MultiLayerNetwork(MultiLayerNetwork.Aggregation aggregation,
MultiLayerNetwork.Transfer transfer,
int... neuronCount)
MultiLayerNetwork
public MultiLayerNetwork(MultiLayerNetwork.Aggregation aggregation,
MultiLayerNetwork.BiasType bias,
int... neuronCount)
MultiLayerNetwork
public MultiLayerNetwork(MultiLayerNetwork.Aggregation aggregation,
int... neuronCount)
MultiLayerNetwork
public MultiLayerNetwork(MultiLayerNetwork.Aggregation aggregation,
MultiLayerNetwork.Transfer transfer,
MultiLayerNetwork.BiasType biasType,
int... neurons)
setOutputVariable
public void setOutputVariable(Variable v)
setOutputDeviationVariable
public void setOutputDeviationVariable(Variable v)
setLearningRate
public void setLearningRate(double v)
getLearningRate
public double getLearningRate()
reset
public void reset()
throws MatrixException
- Specified by:
reset in interface Regressor- Specified by:
reset in class AbstractRegressor
- Throws:
MatrixException
getOutputLayer
public NetworkLayer getOutputLayer()
getInputLayer
public NetworkLayer getInputLayer()
getInputVariable
public Variable getInputVariable()
setInputVariable
public void setInputVariable(Variable v)
setDesiredOutputVariable
public void setDesiredOutputVariable(Variable v)
addInputMatrix
public void addInputMatrix(Matrix m)
setSampleWeight
public void setSampleWeight(double weight)
addDesiredOutputMatrix
public void addDesiredOutputMatrix(Matrix m)
getOutputVariable
public Variable getOutputVariable()
getOutputDeviationVariable
public Variable getOutputDeviationVariable()
getNetworkLayerList
public List<NetworkLayer> getNetworkLayerList()
predict
public Matrix predict(Matrix input,
Matrix sampleWeight)
throws Exception
- Specified by:
predict in interface Regressor- Specified by:
predict in class AbstractRegressor
- Throws:
Exception
getOutputMatrix
public Matrix getOutputMatrix()
train
public void train(Matrix input,
Matrix sampleWeight,
Matrix desiredOutput)
throws Exception
- Specified by:
train in interface Regressor- Specified by:
train in class AbstractRegressor
- Throws:
Exception
determineOptimalTrainingDuration
public int determineOptimalTrainingDuration(ClassificationDataSet dataSet,
int numberOfSteps)
throws Exception
- Throws:
Exception
train
public void train(RegressionDataSet dataSet)
throws Exception
- Specified by:
train in interface Regressor- Specified by:
train in class AbstractRegressor
- Throws:
Exception
trainOnce
public void trainOnce(RegressionDataSet dataSet)
throws Exception
- Throws:
Exception
emptyCopy
public Classifier emptyCopy()
throws Exception
- Throws:
Exception
Copyright © 2009. All Rights Reserved.