package cpm
The Classification and Regression Performance Metrics library
Install
dune-project
Dependency
Authors
Maintainers
Sources
v12.2.0.tar.gz
sha256=9f9c408bde4b1dfd8aa1215e364c6b8c2ce36c091923fe71fe8bbee090797112
md5=41f7f349dce225ccfff44429da092563
doc/cpm/Cpm/TopKeeper/index.html
Module Cpm.TopKeeper
Source
create n
creates a 'a TopKeeper.t
that will keep up to n
best scoring elements. n
must be greater than 0.
add t score elt
add elt
with score
to the top_keeper t
(if the score is good enough or if the top_keeper doesn't hold enough elements yet)
high_scores_first t
retrieve the n
best scores from t
(with associated elements); scores are in decreasing order
get_curr_size t
return the current number of elements in t
. Note that get_curr_size t <= get_max_size t
is always true (it is the data-structure invariant).
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>