- compute the error of a perceptron on the
allocated dataset
SYNOPSIS
int eval_error_ptron
(ptron, error)
ARGUMENTS
PTRON
*ptron
The perceptron.
double
*error
The error of the perceptron, a vector of size [1..ptron->noutputs].
RETURNS
If no error was detected the function returns FALSE and error contains
a valid number for the error made by the perceptron. If an error was
detected the function returns TRUE.
FUNCTION
This function computes the error a perceptron makes on the dataset which
was used by learn_ptron_init.