f1Score: f1Score

Description Usage Arguments Value References Examples

View source: R/f1Score.R

Description

Calculates the F1 score fore each group in a partition.

Usage

1
f1Score(clustering, cytometry, noise.cells)

Arguments

clustering

The labels of the new classification.

cytometry

Data of the clustering, where the last variable contains the original labels.

noise.cells

An array of labels to be considered as noise.

Value

A matrix where the first row is the F1 score, the second row is the Precision and the third row is the Recall.

References

E del Barrio, H Inouzhe, JM Loubes, C Matran and A Mayo-Iscar. (2019) optimalFlow: Optimal-transport approach to flow cytometry gating and population matching. arXiv:1907.08006

Examples

1
2
f1Score(dplyr::pull(Cytometry3[c(sample(1:250,250),251:(dim(Cytometry3)[1])),],11),
        Cytometry3, noise.types)

optimalFlow documentation built on Nov. 8, 2020, 6:59 p.m.