-
Notifications
You must be signed in to change notification settings - Fork 269
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
fix caching #336
fix caching #336
Conversation
The documentation is not available anymore as the PR was closed or merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch ! You probably want to add a test for this though, and add some comments to explain the cache structure
Added some comments and a few tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice ! LGTM :)
* fix caching * fix style * fix exception * add comments * add tests
The current caching from the hub is not working properly. The reason is that a canonical metric is internally converted to hub namespace including the organization and the caching replaces
/
with--
in the cache directory name. Thus the following caching occurs:accuracy
-->evaluate-metrics/accuracy
-->evaluate-metrics--accuracy
However, when trying to load the cache only
accuracy
is searched which is why the caching always fails. Similarly for community metrics. This PR fixes that issue by fixing the lookup paths.Fixes #294