Page
Library
Module
Module type
Parameter
Class
Class type
Source
Kaun_board.LogSourceTraining logger.
A logger creates a Run directory and appends scalar Events as JSONL. All write operations are thread-safe.
let logger = Log.create ~experiment:"mnist" () in
(* in training loop *)
Log.scalars logger ~step ~epoch [ ("train/loss", loss) ];
Log.close loggerThe type for logging sessions.
val create :
?base_dir:string ->
?experiment:string ->
?tags:string list ->
?config:(string * Jsont.json) list ->
unit ->
tcreate () is a new logging session backed by a fresh run directory.
base_dir defaults to the value of RAVEN_RUNS_DIR, or XDG_CACHE_HOME/raven/runs when unset. experiment names the experiment and is appended to the run ID. tags defaults to []. config defaults to [] and is stored in the run manifest.
Raises Sys_error if the run directory cannot be created.
scalars t ~step pairs appends one scalar event per (tag, value) pair.
epoch defaults to None. For a single metric use a one-element list, e.g. ("train/loss", loss) .