f1Score: f1Score

View source: R/f1Score.R

f1ScoreR Documentation

f1Score

Description

Calculates the F1 score fore each group in a partition.

Usage

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

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


HristoInouzhe/optimalFlow documentation built on April 23, 2023, 5:45 p.m.