truelearn.utils.metrics.get_accuracy_score(act_labels: Iterable[bool], pred_labels: Iterable[bool]) float[source]#

Get the accuracy score of the prediction.

The precision is the ratio (tp + tn) / (tp + fp + tn + fn) where tp is the number of true positives, tn is the number of true negatives, fp the number of false positives and fn is the number of false negatives. The accuracy is intuitively the ability of the classifier to correctly classify samples.

  • act_labels – An iterable of actual labels

  • pred_labels – An iterable of predicted labels


The accuracy score.