Contents

classificationError

The fraction of incorrectly labeled examples.

Declaration

var classificationError: Double { get }

Mentioned in

Discussion

The classification error describes how many examples were incorrectly labeled divided by the total number of examples. Accuracy as a percentage may be more intuitive. You can calculate it as follows:

let accuracy = (1 - metrics.classificationError) * 100

See Also

Understanding the model