This commit is contained in:
Glenn Jocher 2019-10-09 00:14:27 +02:00
parent 1e3480d76c
commit a4e9aa34ef
1 changed files with 1 additions and 1 deletions

View File

@ -448,7 +448,7 @@ if __name__ == '__main__':
# Mutate # Mutate
np.random.seed(int(time.time())) np.random.seed(int(time.time()))
s = [.2, .2, .2, .2, .2, .2, .2, .0, .02, .2, .2, .2, .2, .2, .2, .2, .2] # sigmas s = [.2, .2, .2, .2, .2, .2, .2, .0, .02, .2, .2, .2, .2, .2, .2, .2, .2, .2] # sigmas
for i, k in enumerate(hyp.keys()): for i, k in enumerate(hyp.keys()):
x = (np.random.randn(1) * s[i] + 1) ** 2.0 # plt.hist(x.ravel(), 300) x = (np.random.randn(1) * s[i] + 1) ** 2.0 # plt.hist(x.ravel(), 300)
hyp[k] *= float(x) # vary by sigmas hyp[k] *= float(x) # vary by sigmas