quanteda.classifiers
quanteda.classifiers copied to clipboard
Incorrect list index and object name used in crossval() and summarize_results().
In crossval.R:
In line 41 and 42: the k (number of folds) should be i (index of current fold).
In line 69 and 70: object x should be x_df.
The second typo resulted in wrong values for precision, recall and f1 when aggregate over folds and classes, so that:
- F1 value may be greater than both Precision and Recall
- Average recall and balanced accuracy will have unequal value (which should be identical).