public class HNeuralNet extends Object
| Constructor and Description |
|---|
HNeuralNet()
Create a network net and set name for the network
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFeedForwardLayer(int neuronCount)
Construct this layer with a sigmoid threshold function.
|
void |
addFeedForwardLayerWithBias(int neuronCount)
Construct this layer with a sigmoid threshold function.
|
org.encog.neural.networks.structure.AnalyzeNetwork |
analyzeNetwork()
Analyse the current neural network.
|
void |
doc()
Show online documentation.
|
org.encog.neural.networks.BasicNetwork |
editNetwork()
Edit a neural net in a frame
|
org.encog.neural.data.basic.BasicNeuralDataSet |
getData()
Get data
|
ArrayList<Double> |
getEpochError()
Returns errors for each epoch.
|
org.encog.neural.networks.BasicNetwork |
getNetwork()
Return neural net back.
|
org.encog.ml.data.MLData |
predict(org.encog.ml.data.MLData input)
Evaluate data using current NN
|
P0D |
predict(P0D input)
Generate prediction for input data
|
PND |
predict(PND input)
Generate predictions for all input data.
|
int |
read(String file)
Read a neural net from a file.
|
void |
reset()
Reset the weight matrix and the thresholds.
|
String |
save(String file)
Save current status of neural net.
|
void |
setData(double[][] input)
Construct a data set from an input
|
void |
setData(double[][] input,
double[][] ideal)
Construct a data set from an input and idea array.
|
void |
setData(PND input)
Set data
|
void |
setData(PND input,
PND ideal)
Set data for training.
|
void |
show()
Show Net in EncodeDocument.
|
void |
showNetwork()
Show a neural net in a frame.
|
void |
showWeights()
Show a neural net weights in a separate frame.
|
PND |
standardize(PND input)
Standardize each column.
|
int |
trainBackpropagation(boolean isShow,
int maxEpoch,
double learnRate,
double momentum,
double errorMinEpoch)
Training neural network.Construct a backpropagation trainer.
|
public HNeuralNet()
name - name for the networkpublic void reset()
public void addFeedForwardLayer(int neuronCount)
neuronCount - How many neurons in this layerpublic void addFeedForwardLayerWithBias(int neuronCount)
neuronCount - How many neurons in this layerpublic void setData(double[][] input,
double[][] ideal)
input - The input into the neural network for training.ideal - The ideal output for training.public void setData(double[][] input)
input - The input into the neural network for training.public void setData(PND input, PND ideal)
input - input data setideal - expected resul.public void setData(PND input)
input - input data setpublic PND standardize(PND input)
input - PNDpublic org.encog.neural.data.basic.BasicNeuralDataSet getData()
public org.encog.ml.data.MLData predict(org.encog.ml.data.MLData input)
public P0D predict(P0D input)
input - input data for predictionspublic PND predict(PND input)
input - input data for predictionpublic int trainBackpropagation(boolean isShow,
int maxEpoch,
double learnRate,
double momentum,
double errorMinEpoch)
isShow - Show learning on a pop-up plotmaxEpoch - maximum number of epochslearnRate - The rate at which the weight matrix will be adjusted based on
learning.momentum - The influence that previous iteration's training deltas will
have on the current iteration.errorMinEpoch - min error for epoch.public String save(String file)
file - File namepublic int read(String file)
file - File namepublic org.encog.neural.networks.BasicNetwork getNetwork()
public void showNetwork()
public void showWeights()
public org.encog.neural.networks.structure.AnalyzeNetwork analyzeNetwork()
public org.encog.neural.networks.BasicNetwork editNetwork()
public void show()
public ArrayList<Double> getEpochError()
public void doc()
DMelt 2.0 © DataMelt by jWork.ORG