Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Registration and parametrization for evaluation reports#331

Merged
tholor merged 4 commits intodeepset-ai:masterfrom
gsarti:custom-report-metrics
Apr 24, 2020
Merged

Registration and parametrization for evaluation reports#331
tholor merged 4 commits intodeepset-ai:masterfrom
gsarti:custom-report-metrics

Conversation

@gsarti
Copy link
Copy Markdown
Contributor

@gsarti gsarti commented Apr 20, 2020

Related to issue #325 that was deemed as interesting by maintainers:

  • Moved code to compute report metrics inside metrics.py, refactoring it into the ad-hoc function compute_report_metrics.
  • Added the function register_ph_output_type inside metrics.py to allow for custom metric registration in the context of evaluation reports.
  • Added eval_report parameter in the Trainer class to allow switching off reporting when evaluate_every param is > 0.

@tholor
Copy link
Copy Markdown
Member

tholor commented Apr 21, 2020

Hey @gsarti ,

Thanks for working on this! I like the changes and would just propose some smaller adjustments (see my commit 536f1c3):

  • Renaming the method from register_ph_output_type to register_report (I totally see your reasoning for the naming, but I think it might confuse users. I added a docstring to clarify the interplay with ph_output_type)
  • Allowing to use registered reports for existing prediction heads by checking first if there's a registered report

What do you think about these changes? Happy to merge this, when you are fine with it.

@tholor tholor added enhancement New feature or request part: evaluator Evaluator labels Apr 22, 2020
@tholor tholor merged commit dc2490b into deepset-ai:master Apr 24, 2020
tanaysoni pushed a commit that referenced this pull request Apr 24, 2020
* Added registering and param for eval report

* Fix registered ph output types bug

* rename to register_report(). change order in checks. add docstring and error message

* fix typo

Co-authored-by: Malte Pietsch <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request part: evaluator Evaluator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants