Click or drag to resize
NetworkComputeStatistics Method
Computes error statistics.

Namespace: Imsl.DataMining.Neural
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
public virtual double[] ComputeStatistics(
	double[,] xData,
	double[,] yData
)

Parameters

xData
Type: SystemDouble
A double matrix containing the input values.
yData
Type: SystemDouble
A double array containing the observed values.

Return Value

Type: Double
A double array containing the above described statistics.
Remarks
This is a static method that can be used to compute the statistics regardless of the training class used to train the Network.

Computes statistics related to the error. In this table, the observed values are y_i. The forecasted values are \hat{y}_i. The mean observed value is 
            \bar{y} = \sum_i y_i / NC, where N is the number of observations and C is the number of classes per observation.

IndexNameFormula
0SSE\frac{1}{2}
            \sum_i\left(y_i-\hat{y}_i\right)^2
1RMS\frac{\sum_i
            \left(y_i-\hat{y}_i\right)^2}{\sum_i\left(y_i-\bar{y}_i\right)}
2Laplacian\sum_i
            \left|y_i-\hat{y}_i\right|
3Scaled Laplacian
            \frac{\sum_i \left|y_i-\hat{y}_i\right|}{\sum_i\left|y_i-\bar{y}_i
            \right|}
4Max residual
            \max_i\left|y_i-\hat{y}_i\right|

See Also