public class BackpropagationNet extends Object
| Constructor and Description |
|---|
BackpropagationNet()
Construct Backpropagation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNeuronLayer(int i)
Adds a neuron layer with size neurons.
|
void |
connectLayers()
Connects all neuron layers with weight matrices.
|
boolean |
displayNow() |
void |
error(int i) |
boolean |
finishedLearning() |
double |
getAccuracy()
Returns the accuracy value.
|
String |
getAsciiValue(String s) |
String |
getElapsedTime()
Returns the time that elapsed since the learning process started.
|
double |
getError()
Returns the current error of the net.
|
String |
getInputPattern(int i) |
int |
getLearningCycle()
Returns the current learning cycle of the net.
|
double |
getLearningRate()
Returns the current learning rate of the net.
|
int |
getMaxLearningCycles() |
double |
getMinimumError()
Returns the minimum error of a neural net.
|
float[] |
getNeuronOutputs(int i)
Returns the output values of all neurons in layer i
|
int |
getNumberOfLayers() |
int |
getNumberOfNeurons(int i) |
int |
getNumberOfPatterns() |
int |
getNumberOfWeights() |
int |
getNumberOfWeights(int i) |
String |
getOutputPattern(int i)
Returns the output pattern with number patternNr.
|
float |
getPatternError(int i)
Returns the error of output pattern patternNr.
|
String |
getTargetPattern(int i)
Returns the target pattern with number patternNr.
|
float[][] |
getWeightValues(int i)
Returns the weight values of weight matrix matrixNr.
|
void |
incLearningCycle() |
void |
learn()
Performs one learning step.
|
void |
readConversionFile(String s)
Reads a conversion table for ASCII-binary values from file
conversionFileName.
|
void |
readPatternFile(String s) |
String |
recall(String s)
Tries to recall the correct output for a learned input pattern
recallInput.
|
void |
resetTime() |
void |
setAccuracy(double d)
Sets the accuracy value.
|
void |
setDisplayStep(int i) |
void |
setLearningRate(double d) |
void |
setMaxLearningCycles(int i)
Sets the maximum number of learning cycles to x.
|
void |
setMinimumError(double d)
Sets the minimum error of a neural net.
|
double |
square(double d) |
public void addNeuronLayer(int i)
i - public void connectLayers()
public void setMinimumError(double d)
d - public double getMinimumError()
public void setAccuracy(double d)
d - public double getAccuracy()
public float[][] getWeightValues(int i)
i - public float[] getNeuronOutputs(int i)
i - layerpublic int getNumberOfLayers()
public int getNumberOfNeurons(int i)
public int getNumberOfWeights()
public int getNumberOfWeights(int i)
public int getNumberOfPatterns()
public String getInputPattern(int i)
public String getTargetPattern(int i)
i - public String getOutputPattern(int i)
i - public float getPatternError(int i)
i - public double getError()
public void learn()
public String recall(String s)
s - public void readConversionFile(String s)
s - public void readPatternFile(String s)
public boolean finishedLearning()
public void error(int i)
public double square(double d)
public void setLearningRate(double d)
public double getLearningRate()
public void setDisplayStep(int i)
public boolean displayNow()
public void resetTime()
public String getElapsedTime()
public void setMaxLearningCycles(int i)
i - public int getMaxLearningCycles()
public void incLearningCycle()
public int getLearningCycle()
DataMelt-1.1. http://jwork.org/dmelt/ ©