|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.penguinwerks.jodene.listeners.StopOnErrorListener
This implementation of the epoch listener interface sets a threshold error. Once the error from training drops below the threshold value, training is stopped. This should not be used without some kind of max iteration listener.
| Constructor Summary | |
StopOnErrorListener()
Default constructor. |
|
StopOnErrorListener(double val)
Constructor that sets the error threshold. |
|
| Method Summary | |
void |
epochEnd(TrainingEpochEvent evt)
An implementation of the EpochEventListener interface. |
double |
getError()
Returns the error threshold. |
java.lang.String |
getErrorName()
Returns the name of the error to listen to. |
void |
setError(double error)
Sets the error threshold. |
void |
setErrorName(java.lang.String val)
Sets the name of the error to listen to. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StopOnErrorListener()
public StopOnErrorListener(double val)
val - The error threshold.| Method Detail |
public java.lang.String getErrorName()
public void setErrorName(java.lang.String val)
val - The name of the error to listen to.public double getError()
public void setError(double error)
error - The error to set.public void epochEnd(TrainingEpochEvent evt)
EpochEventListener interface.
Terminates training once the training error drops below the threshold
value.
epochEnd in interface EpochEventListenerevt - The epoch event.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||