|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.neural.networks.training.propagation.gradient.GradientUtil
public class GradientUtil
Single threaded class that actually calculates the gradients. This is used by the individual gradient worker classes.
| Constructor Summary | |
|---|---|
GradientUtil(BasicNetwork network)
Construct the gradient utility. |
|
| Method Summary | |
|---|---|
void |
calculate(NeuralData input,
NeuralData ideal)
Calculate the gradents between the input and ideal data. |
void |
calculate(NeuralDataSet training,
double[] weights)
Calculate for an entire training set. |
int |
getCount()
|
double |
getError()
|
double[] |
getErrors()
|
void |
reset(double[] weights)
Reset for an iteration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GradientUtil(BasicNetwork network)
network - The network to calculate gradients for.| Method Detail |
|---|
public void calculate(NeuralData input,
NeuralData ideal)
input - The input data.ideal - The desired output data.
public void calculate(NeuralDataSet training,
double[] weights)
training - The training set to use.weights - The weights to use.public int getCount()
public double getError()
public double[] getErrors()
public void reset(double[] weights)
weights - The weights.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||