-
Notifications
You must be signed in to change notification settings - Fork 2
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
switch plotting code to makie #29
Conversation
Alright, a preview of the docs for the plotting functions is up at: @hannahilea, maybe you can push to this PR to fill in some more details about what those plotting functions do (if desired^^) ? Those details should go into the docstrings here: Line 348 in 470d7ef
|
Let's not block this PR on docs, since we already know those are not in great shape in this repo and adding them isn't top priority (yet). |
I tried a few things to inline the plots somewhere, but it wasn't that easy without uploading the images anywhere... |
that comparison looks good! My thoughts:
|
Hm, I let this run multiple times and got pretty different values every time, which is indeed surprising considering that the plots do look pretty much like a 1:1 match. This will of course also make percy tests hard... @hannahilea do you think we are missing resetting an RNG somewhere, or is the training and metrics output hard to make fully deterministic? |
Yep! We use the global rng in
|
I checked that one explicitly and it looks like we use a local RNG in the tests: |
[1] Line 47 in 66cbc09
|
Oh ha, of course you're right :) I thought I looked at all call sites of majority and made sure RNGs get passed through... |
|
||
deploydocs(repo="github.com/beacon-biosignals/Lighthouse.jl.git", | ||
devbranch="main") | ||
devbranch="main", push_preview=true) |
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.
Yay :)
It's an easy one to miss...I was thrown by some nondeterminism in the LighthouseFlux tests that was due to this callsite, so I'm well familiar with it 😅 |
Ahhhh Simon this is looking so good! :D Looking at the side-by-side plots, here are a few things I think need tweaking before we're good to go:
Also, style improvements that can absolutely wait until future PRs, unless they're easy and you want to:
Also, if at all possible, would be nice to have the side-by-side comparison images in this PR directly, rather than a link-out, so that we don't lose the history if you delete your gist at some point, and so that users can see the changes in this PR to know what they're getting when they bump versions. Makes sense to wait until it's the final version, though, if you prefer! |
So I think if you wanted you could instead bump the required Julia version to 1.6. We're already going to be bumping the Lighthouse minor version, and I don't think any internal Beacon users are using <1.6 at this point.... Your call! |
I will try to figure out how to best upload a report here, so its easier to view... Its somehow surprisingly hard to just upload an html file somewhere and be able to directly look at it. |
Co-authored-by: Hannah Robertson <hannahilea@users.noreply.github.com>
Alright, new comparison: https://serene-jang-51d2d2.netlify.app/ |
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.
Barring the one tiny suggested change, this looks good to go!!
Before we merge, I can collect the comparison into the PR description, so that one can see the differences right away ;)
Sounds good to me!
Co-authored-by: Hannah Robertson <hannahilea@users.noreply.github.com>
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.
looks great!
improved themeabiltitywill do this in another PRVisual changes from this PR (first image -> this PR, second image -> master)
All together 1
All together 2
Confusion matrix :Column
Confusion matrix :Row
Kappas IRA
Kappas no IRA
PR Curves
PRG curves
Reliability calibration
ROC Curves