Click or drag to resize

CategoricalEntailmentEnsembleClassifierEvaluateAccuracy Method

Returns the accuracy of a predicted classification with respect to an actual one.

Namespace:  Novacta.Analytics
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
public static double EvaluateAccuracy(
	CategoricalDataSet predictedDataSet,
	int predictedResponseVariableIndex,
	CategoricalDataSet actualDataSet,
	int actualResponseVariableIndex
)

Parameters

predictedDataSet
Type: Novacta.AnalyticsCategoricalDataSet
The data set containing the predicted classification.
predictedResponseVariableIndex
Type: SystemInt32
The zero-based index of the column in predictedDataSet containing the predictions about the response variable applied for classifying.
actualDataSet
Type: Novacta.AnalyticsCategoricalDataSet
The data set containing the actual classification.
actualResponseVariableIndex
Type: SystemInt32
The zero-based index of the column in actualDataSet containing the observations about the response variable applied for classifying.

Return Value

Type: Double
The accuracy of a predicted classification with respect to an actual one.
Exceptions
ExceptionCondition
ArgumentNullExceptionpredictedDataSet is null.
-or-
actualDataSet is null.
ArgumentOutOfRangeExceptionpredictedResponseVariableIndex is not a valid column index for the Data of predictedDataSet.
-or-
actualResponseVariableIndex is not a valid column index for the Data of actualDataSet.
ArgumentExceptionactualDataSet has not the same NumberOfRows of parameter predictedDataSet.
See Also