AllenInstitute / AllenSDK

code for reading and processing Allen Institute for Brain Science data
https://allensdk.readthedocs.io/en/latest/
Other
344 stars 149 forks source link

Add seeds to notebooks #2671

Closed mikejhuang closed 1 year ago

mikejhuang commented 1 year ago

In order to determine randomness causing different outputs between notebook runs, I went through the ReviewNB and looked at all the diffs between two runs.

Identified differences:

  1. pd.DataFrame.sample randomly samples rows from a data frame. Setting random_state fixes this.
  2. A raster plot on ecephys_sessions randomly samples colors.
  3. tmp directories are assigned a UUID
  4. printouts of transfer speeds vary when files are reached
  5. printouts of memory addresses of objects vary

Only (1) was fixed in this PR.

review-notebook-app[bot] commented 1 year ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB