Repository navigation
fix(leaderboard): one-sided range links and the runnable_only filter - #583
Merged
Merged
Conversation
…ange A link with only min_param_count set the maximum to a fixed 100 M, so ?min_param_count=100 showed no models. Model size and stimulus count had the same fallback (1000). The missing bound now comes from the range the leaderboard computed from the data.
runnable_only was read from and written to the URL but never filtered rows, and the page had no control for it. A Runnable Models Only checkbox under Model Properties now keeps only models whose metadata marks them runnable, and stays in sync with the URL and Reset.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two leaderboard URL filters gave wrong results. Both showed up while building cohort links from the landing page (
kp/landing-virtual-lab).1. A link with only one range bound
applyFiltersToUIfilled a missing bound with a fixed default: 100 for parameter count, 1000 for model size and stimulus count. So?min_param_count=100set the range to 100-100 M and showed no models. The missing bound now comes from the range the leaderboard computes from the data (window.filterOptions.parameter_ranges,size_ranges,stimuli_ranges); the fixed values stay as the last fallback.2.
runnable_onlydid nothingurl-state.jsread and wroterunnable_only, butapplyCombinedFiltersnever used it, and the page had no control. A Runnable Models Only checkbox under Model Properties now keeps only rows whose metadata hasrunnable: true. It follows the URL, updates it, and Reset clears it.runnablestill comes from v1brainscore_modelmeta(#581 left it there).Results on the dev database (local runserver, public vision models)
?min_param_count=100?min_model_size=500?runnable_only=trueTests
test_ag_grid.py, one per bug. Both fail before the fix and pass after.test_ag_grid.pyagainst a local server on the dev database: 29 passed, 2 skipped, the same before and after the change.test_leaderboard_filters: OK.Not changed: after any filter change the URL still lists every slider range. That is existing behavior on master.