nuclear-multimessenger-astronomy / nmma

A pythonic library for probing nuclear physics and cosmology with multimessenger analysis
https://nuclear-multimessenger-astronomy.github.io/nmma/
GNU General Public License v3.0
30 stars 58 forks source link

Set random seed for python/numpy/tf during nn training #236

Closed bfhealy closed 1 year ago

bfhealy commented 1 year ago

This PR sets the random seed for python/numpy/tensorflow during NN training. Previously only the numpy random state was set, leading to a variation in training results from run to run.

mcoughlin commented 1 year ago

@bfhealy Maybe we modify this to default to some value at the command line but still allow us to control it in some way?

bfhealy commented 1 year ago

@mcoughlin I agree, the latest commit allows --random-seed to be input to create_svdmodel.