Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] Improve scorer selection in Test and Score and predictions #6282

Merged
merged 6 commits into from Jan 10, 2023

Conversation

janezd
Copy link
Contributor

@janezd janezd commented Jan 6, 2023

Issue
  • ScoreTable, which is used in Test and Score, and in Predictions, has a hard coded list of scorers, which defines the (default) visibility and the order. New scores are thus invisible by default.
  • The names of classes are used for names of columns. It is thus impossible to translate them. A name attribute exists, but is not defined and defaults to class name.
  • The user may not be aware that (s)he can choose additional scores by right-clicking the header.
Description of changes
  • Scorers define default visibility and priority as class attributes.

  • Visibility settings are stored as "hints", so new scorers (e.g. from add-ons) may be visible if they that's their default.

  • The name attribute is now defined, but in settings the scorers are referred to by their class names, so settings "survive" the change of language.

  • Add an indicator that can be clicked and opens a popup for selection of scores (fixes Test and Score - intuitive way to add new score #6131).

    Although currently in Orange.widgets.evaluate.utils, the class SelectableColumnsHeader is general and can be moved somewhere else and used, e.g. in OWRanks.

Includes
  • Code changes
  • Tests
  • Documentation

@janezd janezd force-pushed the scorer-registration branch 2 times, most recently from 6fa3485 to 46b70f4 Compare January 7, 2023 09:20
@janezd janezd mentioned this pull request Jan 7, 2023
3 tasks
@markotoplak markotoplak changed the title Scorer registration and Table [ENH] Improve scorer selection in Test and Score and predictions Jan 9, 2023
@markotoplak markotoplak merged commit 730d256 into biolab:master Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test and Score - intuitive way to add new score
3 participants