package cpm

  1. Overview
  2. Docs
The Classification and Regression Performance Metrics library

Install

Dune Dependency

Authors

Maintainers

Sources

v6.0.0.tar.gz
sha256=1b15e4108a4528428e0c9e49e1b42280d3d43957aa45c096a92fc4f17e3d43d1
md5=dac9411c0f3f5d0f8f450a4468ef3385

doc/cpm/Cpm/TopKeeper/index.html

Module Cpm.TopKeeperSource

Sourcetype t
Sourceval create : int -> t

create n creates a Top_keeper.t that will keep up to n best elements

Sourceval add : string -> float -> t -> t

add name score add score score to the top_keeper under name name (if the score is good enough or if the top_keeper doesn't hold enough elements currently)

Sourceval high_scores_first : t -> (float * string) list

high_scores_first tk retrieves the n best scores (with associated names) that were kept by tk

OCaml

Innovation. Community. Security.