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

PUBDEV-8811: Fix leaderboard sorting #6297

Merged
merged 1 commit into from
Sep 6, 2022

Conversation

tomasfryda
Copy link
Contributor

@tomasfryda tomasfryda commented Aug 22, 2022

https://h2oai.atlassian.net/browse/PUBDEV-8811

I noticed 2 bugs:

  • Leaderboard is not sorted by scoring_data but by some other logic (by the first available metrics from xval, valid, train) - this is problem when we want to see training leaderboard but it is sorted by xval metrics (if available).

  • Leaderboard is not sorted by sort_metric if it was already sorted by other metric

@tomasfryda tomasfryda self-assigned this Aug 22, 2022
@@ -91,8 +91,8 @@ public ValFrame apply(Env env, Env.StackHelp stk, AstRoot[] asts) {
.map(parameters -> parameters._nfolds)
.distinct()
.count() == 1;
final boolean allCV = Arrays.stream(models).allMatch(m -> ((Model) DKV.getGet(m))._parms._nfolds >= 2);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checking nfolds causes issues when fold_column was used.

@tomasfryda tomasfryda changed the title Fix leaderboard sorting PUBDEV-8811: Fix leaderboard sorting Aug 22, 2022
Copy link
Contributor

@sebhrusen sebhrusen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tomasfryda Please confirm that I understand correctly your changes with the sorting logic. Otherwise this looks good, thanks.

@tomasfryda tomasfryda merged commit 72f455e into master Sep 6, 2022
@tomasfryda tomasfryda deleted the tomf_pubdev-8811_fix_make_leaderboard branch September 6, 2022 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants