seisnn.qc.precision_recall_f1_score

seisnn.qc.precision_recall_f1_score(true_positive, pred_count, val_count)[source]

Calculates precision, recall and f1 score.

Parameters
  • true_positive (int) – True positive count.

  • pred_count (int) – Predict count.

  • val_count (int) – Validation count.

Return type

float

Returns

(precision, recall, f1)