How do I make ray.tune.run reproducible?
问题 I'm using Tune class-based Trainable API. See code sample: from ray import tune import numpy as np np.random.seed(42) # first run tune.run(tune.Trainable, ...) # second run, expecting same result np.random.seed(42) tune.run(tune.Trainable, ...) The problem is that tune.run results are still different, likely reason being that each ray actor still has different seed. Question : how do I make ray.tune.run reproducible? 回答1: (This answer focuses on class API and ray version 0.8.7. Function API