|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.penguinwerks.jodene.ErrorManager
The error manager allows you to configure error calculators and maintains a history of errors. During training the current errors are available as the error report. After training all error reports, in order, are moved to the history.
| Constructor Summary | |
ErrorManager()
Creates a new instance of ErrorManager |
|
| Method Summary | |
void |
accumulateError(java.util.Map expected,
java.util.Map actual)
Calculates the error using the available error calculators. |
void |
addCalculator(java.lang.String name,
ErrorCalculator calculator)
Adds a new calculator with the given name to the error manager. |
void |
clearErrors()
Clears the error report, moving it to the error History. |
ErrorCalculator |
getCalculator(java.lang.String name)
Returns an error calculator with a given name. |
double |
getError(java.lang.String name)
Returns the error for a given error calculator. |
int |
getErrorHistorySize()
Returns the size of the error history. |
java.util.List |
getHistoricalErrors(java.lang.String name)
Returns the error history for a given error calculator. |
double |
getLastError(java.lang.String name)
Returns the last error value for a given calculator. |
java.util.Map |
getLastErrors()
Returns the last error report in history. |
java.util.Map |
getReport()
Returns the error report, which contains the errors, organized by name. |
int |
getSize()
Returns the number of error calculators configured. |
java.util.List |
listCalculators()
Returns the list of calculator names. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ErrorManager()
| Method Detail |
public int getSize()
public void addCalculator(java.lang.String name,
ErrorCalculator calculator)
calculator - The error calculator.name - The name of the error calculator.
public void accumulateError(java.util.Map expected,
java.util.Map actual)
expected - The expected values from the example.actual - The actual values obtained by evaluating
the network.public double getError(java.lang.String name)
name - The name of the error calculator.
public void clearErrors()
public java.util.Map getReport()
public int getErrorHistorySize()
public java.util.List getHistoricalErrors(java.lang.String name)
name - The name of the error calculator.
public java.util.Map getLastErrors()
public double getLastError(java.lang.String name)
name - The name of the error calculator.
public java.util.List listCalculators()
public ErrorCalculator getCalculator(java.lang.String name)
name - The name of the error calculator.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||