|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.joone.util.MonitorPlugin
org.joone.engine.listeners.ErrorBasedTerminator
public class ErrorBasedTerminator
Stops a network whenever the training error of the network falls below a certain value.
Constructor Summary | |
---|---|
ErrorBasedTerminator()
Creates a new instance of ErrorBasedTerminator |
|
ErrorBasedTerminator(double anErrorLevel)
Creates a new instance of ErrorBasedTerminator |
Method Summary | |
---|---|
double |
getErrorLevel()
Gets the error level. |
int |
getStoppedCycle()
Gets the cycle the network was stopped. |
boolean |
isStopRequestPerformed()
Checks if this object requested / stopped the neural network. |
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 |
setErrorLevel(double anErrorLevel)
Sets the error level. |
Methods inherited from class org.joone.util.MonitorPlugin |
---|
cicleTerminated, errorChanged, getName, getNeuralNet, getRate, netStarted, netStopped, netStoppedError, setName, setNeuralNet, setRate, toBeManaged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ErrorBasedTerminator()
public ErrorBasedTerminator(double anErrorLevel)
anErrorLevel
- the error level. A network having a training error
equal to or below this level will be stopped.Method Detail |
---|
public void setErrorLevel(double anErrorLevel)
anErrorLevel
- the error level to set.public double getErrorLevel()
protected void manageStop(Monitor mon)
manageStop
in class MonitorPlugin
protected void manageCycle(Monitor mon)
manageCycle
in class MonitorPlugin
protected void manageStart(Monitor mon)
manageStart
in class MonitorPlugin
protected void manageError(Monitor mon)
manageError
in class MonitorPlugin
protected void manageStopError(Monitor mon, java.lang.String msgErr)
manageStopError
in class MonitorPlugin
public int getStoppedCycle()
public boolean isStopRequestPerformed()
true
if this object requested the stop of the network
since it has been started, false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |