package prc

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Precision-Recall curve construction and AUC computation

References: 1 The binormal assumption on precision-recall curves. Kay H. Brodersen, Cheng Soon Ong, Klaas E. Stephan and Joachim M. Buhmann

2 Area Under the Precision-Recall Curve: Point Estimates and Confidence Intervals. Kendrick Boyd, Kevin H. Eng and C. David Page

3 Precision-Recall-Gain Curves: PR Analysis Done Right. Peter A. Flach and Meelis Kull

4 The Relationship Between Precision-Recall and ROC Curves. Jesse Davis and Mark Goadrich

5 Realisable Classifiers: Improving Operating Performance on Variable Cost Problems. M.J.J. Scott, M. Niranjan, R.W. Prager

type dataset =
  1. | Dataset of (float * bool) list
    (*

    Binary prediction scores with associated labels

    *)
val operating_points : dataset -> (float * float * float) list

operating_points d computes the list of score threshold, recall and precision triplets, sorted by decreasing threshold.

val auc_trapezoidal_lt : dataset -> float

AUC lower triangular estimator (see 2 for reference)

val auc_average_precision : dataset -> float

AUC average precision (see 2 for reference)

val logit_confidence_interval : alpha:float -> theta_hat:float -> n:int -> float * float

logit_confidence_interval ~alpha ~theta_hat ~n computes an asymptotically valid confidence interval at level 1 - alpha, when the estimate theta_hat was obtained from a sample of n observations.

module Binormal_model : sig ... end

Binormal model

OCaml

Innovation. Community. Security.