summary.textmodel_newsmap_accuracy: Calculate micro and macro average measures of accuracy

View source: R/textmodel.R

summary.textmodel_newsmap_accuracyR Documentation

Calculate micro and macro average measures of accuracy

Description

This function calculates micro-average precision (p) and recall (r) and macro-average precision (P) and recall (R) based on a confusion matrix from accuracy().

Usage

## S3 method for class 'textmodel_newsmap_accuracy'
summary(object, ...)

Arguments

object

output of accuracy()

...

not used.


newsmap documentation built on May 29, 2024, 7:09 a.m.