Structure

MLWordTaggerMetrics

Metrics used to evaluate a word tagger’s performance.

Declaration

struct MLWordTaggerMetrics

Topics

Analyzing the Tagger’s Performance

var taggingError: Double

The fraction of incorrectly tagged examples.

var precisionRecall: MLDataTable

A data table listing the precision and recall percentages for each category.

var confusion: MLDataTable

A table comparing the actual and predicted labels for each tagging category.

Handling Errors

var isValid: Bool

A Boolean value indicating whether the metrics were calculated.

var error: Error?

The underlying error present when the metrics are invalid.

Describing Metrics

var description: String

A text representation of the word tagger metrics.

var debugDescription: String

A text representation of the word tagger metrics that’s suitable for output during debugging.

var playgroundDescription: Any

A description of the word tagger metrics shown in a playground.

See Also

Assessing Model Accuracy

var trainingMetrics: MLWordTaggerMetrics

Measurements of the tagger’s performance on the training data set.

var validationMetrics: MLWordTaggerMetrics

Measurements of the tagger’s performance on the validation data set.