public class DeltaBasedConvergenceObserver extends ConvergenceObserver
disableCurrentConvergence| Constructor and Description |
|---|
DeltaBasedConvergenceObserver()
Creates a new instance of DeltaBasedConvergenceObserver
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCycles()
Gets the number of cycles over which convergence is checked.
|
NeuralNet |
getNeuralNet()
Gets the neural net that is being checked for convergence.
|
double |
getSize()
Gets the size (delta bound for convergence).
|
protected boolean |
isConvergence(Matrix aMatrix)
Checks if the weights or biases have converged, i.e.
|
protected void |
manageCycle(Monitor mon) |
protected void |
manageError(Monitor mon) |
protected void |
manageStart(Monitor mon) |
protected void |
manageStop(Monitor mon) |
protected void |
manageStopError(Monitor mon,
java.lang.String msgErr) |
void |
setCycles(int aCylces)
Sets the number of cycles.
|
void |
setNeuralNet(NeuralNet aNet)
Sets the neural network to be checked for convergence.
|
void |
setSize(double aSize)
Sets the size.
|
addConvergenceListener, disableCurrentConvergence, fireNetConverged, removeConvergenceListenercicleTerminated, errorChanged, getName, getRate, netStarted, netStopped, netStoppedError, setName, setRate, toBeManagedpublic DeltaBasedConvergenceObserver()
public void setSize(double aSize)
setCycles(), the network is
considered as converged.aSize - the size to set.public double getSize()
public void setCycles(int aCylces)
aCylces - public int getCycles()
public void setNeuralNet(NeuralNet aNet)
setNeuralNet in class MonitorPluginaNet - the network to set.public NeuralNet getNeuralNet()
getNeuralNet in class MonitorPluginprotected void manageStop(Monitor mon)
manageStop in class MonitorPluginprotected void manageCycle(Monitor mon)
manageCycle in class MonitorPluginprotected void manageStart(Monitor mon)
manageStart in class MonitorPluginprotected void manageError(Monitor mon)
manageError in class MonitorPluginprotected boolean isConvergence(Matrix aMatrix)
aMatrix - the matrix (weights or biases) to check if their deltas are equal
to or below size.protected void manageStopError(Monitor mon, java.lang.String msgErr)
manageStopError in class MonitorPluginSubmit Feedback to pmarrone@users.sourceforge.net