updates
This commit is contained in:
parent
adc2663fe7
commit
8385f613d2
2
train.py
2
train.py
|
@ -485,7 +485,7 @@ if __name__ == '__main__':
|
|||
|
||||
# Mutate
|
||||
np.random.seed(int(time.time()))
|
||||
s = [.2, .2, .2, .2, .2, .2, .2, .0, .02, .2, .2, .2, .2, .2, .2, .2, .2, .2] # sigmas
|
||||
s = np.array([1, 1, 1, 1, 1, 1, 1, 0, .1, 1, 1, 1, 1, 1, 1, 1, 1, 1]) * 0.2 # sigmas
|
||||
for i, k in enumerate(hyp.keys()):
|
||||
x = (np.random.randn(1) * s[i] + 1) ** 2.0 # plt.hist(x.ravel(), 300)
|
||||
hyp[k] *= float(x) # vary by sigmas
|
||||
|
|
Loading…
Reference in New Issue