micm_nlp.evals¶
Evaluation: metric assembly, prediction post-processing and plots.
eval—get_compute_metricsbuilds thecompute_metricscallable theTrainerexpects;get_preprocess_logits_for_metricsis its companion hook, which runs before logits are accumulated. Also handles per-task grouping and label restriction.results— one evaluation event becomes one file in the run’s output:save_metricswrites the metrics CSV,save_predictionsthe per-sample one.plot— confusion matrices.metrics— the metric implementationsevaluatedoes not provide directly. See that package’s docstring: it holds two different module shapes, on purpose.