-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add Prediction Output #131
base: master
Are you sure you want to change the base?
Conversation
minutes/audio.py
Outdated
@@ -8,6 +8,9 @@ | |||
|
|||
|
|||
class Audio: | |||
"""Internal audio maninpulation class. I reserve the right to change this |
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.
Nit: s/maninpulation/manipulation/g
minutes/base.py
Outdated
return { | ||
i: getattr(self, i) for i in self.intialization_params | ||
if i in { | ||
'ms_per_observation', |
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.
I think it would be good to declare this set as a constant somewhere and refer to it by name.
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.
Of course!
Hmm, for some reason the PR build is passing but the actual commit build is failing? 🤔 |
Yeah. The failure means that the model build is not deterministic, which may not be a problem, but affects they way the tests may be written. I can run that test 100 times and view the output to be sure. |
Posting a fix for this today! |
I've replicated this locally. It is as we expected, the test is non-deterministic because we train the model each time! ProblemWe provide our model with a from numpy.random import seed
from tensorflow import set_random_seed
seed(random_state)
set_random_seed(random_state) Options
|
This seems like the simplest solution for now! |
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 to me! Agreed that seeding the state is probably the easiest way to achieve reproducibility (and we mostly just care about it for consistent CI testing anyways).
👷 Changes
🔦 Testing Instructions
Follow README instructions.