microsoft / microsoft/FLAML

Update TransformersEstimator._compute_metrics_by_dataset_name

Open
#626 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Jupyter Notebook
Stars
4.4k
Forks
565
Avg merge
5d 8m
Merged PRs (30d)
17

Description

Update TransformersEstimator._compute_metrics_by_dataset_name so it can merge the two cases into one function: (1) when the metric is a string, (2) when the metric is a custom function.

Use self._metric(eval_pred, self) to merge the two cases.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.