Conversation
minutes/audio.py
Outdated
|
|
||
|
|
||
| class Audio: | ||
| """Internal audio maninpulation class. I reserve the right to change this |
There was a problem hiding this comment.
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.
I think it would be good to declare this set as a constant somewhere and refer to it by name.
|
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! |
iKevinY
left a comment
There was a problem hiding this comment.
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.