org.encog.neural.pattern
public class PNNPattern extends Object implements NeuralNetworkPattern
Constructor and Description |
---|
PNNPattern() |
Modifier and Type | Method and Description |
---|---|
void |
addHiddenLayer(int count)
Add a hidden layer.
|
void |
clear()
Clear out any hidden neurons.
|
MLMethod |
generate()
Generate the RSOM network.
|
int |
getInputNeurons() |
PNNKernelType |
getKernel() |
PNNOutputMode |
getOutmodel() |
int |
getOutputNeurons() |
void |
setActivationFunction(ActivationFunction activation)
Set the activation function.
|
void |
setInputNeurons(int count)
Set the input neuron count.
|
void |
setKernel(PNNKernelType kernel)
Set the kernel type.
|
void |
setOutmodel(PNNOutputMode outmodel)
Set the output model.
|
void |
setOutputNeurons(int count)
Set the output neuron count.
|
public void addHiddenLayer(int count)
addHiddenLayer
in interface NeuralNetworkPattern
count
- The number of hidden neurons.public void clear()
clear
in interface NeuralNetworkPattern
public MLMethod generate()
generate
in interface NeuralNetworkPattern
public int getInputNeurons()
public PNNKernelType getKernel()
public PNNOutputMode getOutmodel()
public int getOutputNeurons()
public void setActivationFunction(ActivationFunction activation)
setActivationFunction
in interface NeuralNetworkPattern
activation
- The activation function to use.public void setInputNeurons(int count)
setInputNeurons
in interface NeuralNetworkPattern
count
- The number of neurons.public void setKernel(PNNKernelType kernel)
kernel
- The kernel type.public void setOutmodel(PNNOutputMode outmodel)
outmodel
- The output model.public void setOutputNeurons(int count)
setOutputNeurons
in interface NeuralNetworkPattern
count
- The number of neurons.Copyright © 2014. All Rights Reserved.