Computes classification 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[] containing the output classification patterns. The values in yData must be in the range of one to the number of OutputPerceptrons in the network.
Return Value
A double[] containing the cross-entropy error and the classification error rate.
Remarks
Method ComputeStatistics returns a two element array where the
first element returned is the 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 not the largest among the target classes, then
the pattern is tallied as a classification error.