carpentries-incubator / deep-learning-intro

Learn Deep Learning with Python
https://carpentries-incubator.github.io/deep-learning-intro/
Other
30 stars 37 forks source link

Bug fix: random seed for keras #389

Closed laurasootes closed 10 months ago

laurasootes commented 10 months ago

This PR fixes a bug in step 4 of episode 2. Here two seeds are set to ensure consistent results. However the second seed is not correct or depricated from tensorflow.random import set_seed set_seed(2)

instead the keras.utils.set_random_seed should be used to ensure consistent results. The first seed from numpy is also still neccesary.

fixes #388

github-actions[bot] commented 10 months ago

:ok: Pre-flight checks passed :smiley:

This pull request has been checked and contains no modified workflow files or spoofing.

It should be safe to Approve and Run the workflows that need maintainer approval.