|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.mathutil.error.ErrorCalculation
public class ErrorCalculation
Calculate the error of a neural network. Encog currently supports three error calculation modes. See ErrorCalculationMode for more info.
Constructor Summary | |
---|---|
ErrorCalculation()
|
Method Summary | |
---|---|
double |
calculate()
Returns the root mean square error for a complete training set. |
double |
calculateESS()
Calculate the error with SSE. |
double |
calculateMSE()
Calculate the error with MSE. |
double |
calculateRMS()
Calculate the error with RMS. |
static ErrorCalculationMode |
getMode()
get the error calculation mode, this is static and therefore global to all Enocg training. |
void |
reset()
Reset the error accumulation to zero. |
static void |
setMode(ErrorCalculationMode theMode)
Set the error calculation mode, this is static and therefore global to all Enocg training. |
void |
updateError(double[] actual,
double[] ideal,
double significance)
Called to update for each number that should be checked. |
void |
updateError(double actual,
double ideal)
Update the error with single values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ErrorCalculation()
Method Detail |
---|
public static ErrorCalculationMode getMode()
public static void setMode(ErrorCalculationMode theMode)
theMode
- The new mode.public final double calculate()
public final double calculateMSE()
public final double calculateESS()
public final double calculateRMS()
public final void reset()
public final void updateError(double actual, double ideal)
actual
- The actual value.ideal
- The ideal value.public final void updateError(double[] actual, double[] ideal, double significance)
actual
- The actual number.ideal
- The ideal number.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |