Module Kaun.MetricsSource

Sourcetype t
Sourcetype metric
Sourceval avg : string -> metric
Sourceval sum : string -> metric
Sourceval accuracy : string -> metric
Sourceval create : metric list -> t
Sourceval update : t -> ?loss:('layout, 'dev) tensor -> ?logits:('layout, 'dev) tensor -> ?labels:('layout, 'dev) tensor -> unit -> unit
Sourceval compute : t -> (string * float) list
Sourceval get : t -> string -> float
Sourceval reset : t -> unit