package modelkit

  1. Overview
  2. Docs
Portable classical machine learning workflows for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

modelkit-0.5.0.tbz
sha256=1fe8fa7c7f904dd098a21a2ca30fd69230750b8cf8aa2ae481b97a16531b47b4
sha512=c946cd1ac014726f4d21791e14d806a205680e6edfa2f80ed8d3680f24f48ca3c5a2f89d5afa68c11eac4053ead448b6381fb3d06dc8ff129097af6c69b262fb

doc/modelkit/Modelkit/Scorer/index.html

Module Modelkit.Scorer

A type-safe, first-class scorer supplied by application or third-party code. of_module snapshots the immutable specification with clone. Names and capability compatibility are validated by consuming evaluation APIs before fitting begins.

type ('truth, 'prediction) t
val of_module : capabilities:Capability.scorer -> (module SCORER with type params = 'params and type prediction = 'prediction and type t = 'specification and type truth = 'truth) -> 'specification -> ('truth, 'prediction) t
val name : ('truth, 'prediction) t -> string
val capabilities : ('truth, 'prediction) t -> Capability.scorer
val score : ('truth, 'prediction) t -> ?sample_weight:Sample_weight.t -> truth:'truth -> prediction:'prediction -> unit -> (float, Error.t) result