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

Changes for the acrobot hackathon #276

Closed
wants to merge 29 commits into from
Closed

Changes for the acrobot hackathon #276

wants to merge 29 commits into from

Conversation

kegl
Copy link
Collaborator

@kegl kegl commented Nov 7, 2019

kegl and others added 2 commits November 7, 2019 13:34
* redirect to credit after submission

* confirming submission in message

* contributivity

* flake

* flake

* flake

* flake

* more coverage

* more coverage

* more coverage

* making tracking credits optional

* flake

* fixing test

* fixing test

* style

* tests

* flake

* flake
@codecov
Copy link

codecov bot commented Nov 7, 2019

Codecov Report

Merging #276 into master will decrease coverage by 0.3%.
The diff coverage is 97.37%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #276      +/-   ##
==========================================
- Coverage   92.13%   91.83%   -0.31%     
==========================================
  Files          95       96       +1     
  Lines        7244     7455     +211     
==========================================
+ Hits         6674     6846     +172     
- Misses        570      609      +39
Impacted Files Coverage Δ
...atabase/ramp_database/model/tests/test_workflow.py 100% <ø> (ø) ⬆️
ramp-utils/ramp_utils/tests/test_config_parser.py 100% <ø> (ø) ⬆️
ramp-database/ramp_database/tests/test_utils.py 100% <ø> (ø) ⬆️
ramp-frontend/ramp_frontend/tests/test_testing.py 100% <ø> (ø) ⬆️
ramp-utils/ramp_utils/tests/test_deploy.py 92.53% <ø> (ø) ⬆️
ramp-utils/ramp_utils/tests/test_cli.py 100% <ø> (ø) ⬆️
ramp-engine/ramp_engine/tests/test_dispatcher.py 100% <ø> (ø) ⬆️
...database/ramp_database/model/tests/test_problem.py 100% <ø> (ø) ⬆️
...p-database/ramp_database/model/tests/test_score.py 100% <ø> (ø) ⬆️
...mp-database/ramp_database/model/tests/test_fold.py 100% <ø> (ø) ⬆️
... and 48 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0515e92...049637b. Read the comment docs.

@kegl
Copy link
Collaborator Author

kegl commented Nov 8, 2019

@glemaitre: does the CLI part of the sphynx doc get updated automatically as we add CLI commands or it has to be added manually to the doc?

@pep8speaks
Copy link

pep8speaks commented Nov 9, 2019

Hello @kegl! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-01-14 16:58:58 UTC

@kegl
Copy link
Collaborator Author

kegl commented Nov 18, 2019

I prefer not to for readability.

@kegl
Copy link
Collaborator Author

kegl commented Nov 19, 2019

@agramfort, @glemaitre I prefer to elaborate to avoid misunderstandings although it's a minor issue.

The new version is about 30 lines longer, 20 of which is docstring and comments. We could add helper functions to get the scores and the time and call it from both the private and public leaderboard code. That would be the proper way to modularize, but that would add code (new functions, docstrings, etc). I'm not against but I find this current compromise (between code repetition and length) better.

The previous code somehow assumed that there are only minor differences between public and private leaderboard and tried to construct them in the same function. The timing bug was introduced by an over-generalizing idea to make it "pretend" that they are more similar than they actually are. Even tests didn't catch this bug. It was quite important since in our challenge there is limit on total training time, so we needed a hotfix in the weekend. When doing it I had a hard time understanding the code, quite a bit of pandas magic. I prefer to construct the columns explicitly, for readability. In this way we can also modify the the two tables relatively independently.

@kegl
Copy link
Collaborator Author

kegl commented Nov 19, 2019

I would like to merge this into master after the hackathon ends, so early December.

Hopefully no more hotfixes, we'll see.

We have one more customization change pending: we added a long privacy statement and terms and conditions on the sign up page (required by our lawyers). We simply modified the sign up template, but it's pure html that could be programmatically inserted from a file into the template. This should be customizable. @agramfort @glemaitre @maikia @lucyleeow what would you suggest to do here? We can have custom html files in https://github.com/paris-saclay-cds/ramp-board/tree/master/ramp-frontend/ramp_frontend/templates but is this a good practice to modify those directly (since they are part of the software, committed in the repo)?

A similar issue comes up when you want to add OVH logo to the landing page, but only on the CDS deployment.

@kegl kegl mentioned this pull request Nov 20, 2019
@lgtm-com
Copy link

lgtm-com bot commented Dec 2, 2019

This pull request introduces 4 alerts when merging 91522cd into 1ba84e2 - view on LGTM.com

new alerts:

  • 4 for Unused import

@kegl kegl changed the title [WIP] Changes for the acrobot hackathon Changes for the acrobot hackathon Dec 2, 2019
@rth
Copy link
Collaborator

rth commented Dec 11, 2019

I think it would help a lot reviewers if this PR was split in smaller chunks. I have not reviewed everything in details, but following parts should be very easy to merge if they were made as separate PRs and looks like a significant improvement,

  • optimization in ramp-database/ramp_database/tools/frontend.py and in dispatcher ramp-engine/ramp_engine/dispatcher.py
  • fixing typos in ramp_frontend/views/admin.py and ramp_frontend/views/auth.py
  • fix bug in send_mail(admin: I have actually run into this previously, but hasn't opened an issue so far.
  • the addition of make_admin CLI command

and in larger changes (that I have not reviewed in detail),

  • adding the computation of contributivity
  • and other CV changes discussed in the description

Is anyone interested/available in making smaller PRs for the top 4 points, at least? That would also help reducing the diff here. Maybe @maikia ? :)

@lgtm-com
Copy link

lgtm-com bot commented Jan 14, 2020

This pull request introduces 1 alert when merging 8e7cbe1 into c8f6423 - view on LGTM.com

new alerts:

  • 1 for Unused import

@lgtm-com
Copy link

lgtm-com bot commented Jan 14, 2020

This pull request introduces 1 alert when merging 3a733e9 into c8f6423 - view on LGTM.com

new alerts:

  • 1 for Unused import

@rth
Copy link
Collaborator

rth commented Apr 1, 2021

Closing as I believe all major features from this PR were either merged as separate PRs to master or are now in the advanced branch. Full list in the issue description #276 (comment)
There might be a few style related points remaining but for those it would be easier to create a new PR than trying to resolve merge conflicts here IMO.

@rth rth closed this Apr 1, 2021
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.

4 participants