Computes the classification error statistics for the supplied network patterns and their associated classifications.

Namespace: Imsl.DataMining.Neural
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public virtual double[] ComputeStatistics(
	double[,] xData,
	int[] yData
)
Visual Basic (Declaration)
Public Overridable Function ComputeStatistics ( _
	xData As Double(,), _
	yData As Integer() _
) As Double()
Visual C++
public:
virtual array<double>^ ComputeStatistics(
	array<double,2>^ xData, 
	array<int>^ yData
)

Parameters

xData
Type: array< System..::.Double ,2>[,](,)[,]
A double matrix specifying the input training patterns. The number of columns in xData must equal the number of Nodes in the InputLayer.
yData
Type: array< System..::.Int32 >[]()[]
An int array containing the output classification patterns. The values in yData must be 0 or 1.

Return Value

A two-element double array containing the binary cross-entropy error and the classification error rate.

Remarks

The first element returned is the binary cross-entropy error; the second is the classification error rate. The classification error rate is calculated by comparing the estimated classification probabilities to the target classifications. If the estimated probability for the target class is less than 0.5, then this is tallied as a classification error.

See Also