From abbf9fa2d400a116479dbbc472b4c3f3efbb53f4 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sun, 19 Jan 2020 15:37:56 -0800 Subject: [PATCH] updates --- train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train.py b/train.py index 43388078..03b09f62 100644 --- a/train.py +++ b/train.py @@ -471,7 +471,7 @@ if __name__ == '__main__': v = (np.random.randn(ng) * np.random.random(ng) * g * s + 1) ** 2.0 elif method == 3: v = np.ones(ng) - while all(v == 1): # mutate untill a change occurs (prevent duplicates) + while all(v == 1): # mutate until a change occurs (prevent duplicates) r = (np.random.random(ng) < 0.1) * np.random.randn(ng) # 10% mutation probability v = (g * s * r + 1) ** 2.0 for i, k in enumerate(hyp.keys()): # plt.hist(v.ravel(), 300)