updates
This commit is contained in:
parent
33264f5567
commit
25ccf54a94
2
train.py
2
train.py
|
@ -460,7 +460,7 @@ if __name__ == '__main__':
|
||||||
mutate_version = 2
|
mutate_version = 2
|
||||||
np.random.seed(int(time.time()))
|
np.random.seed(int(time.time()))
|
||||||
s = 0.2 # 20% sigma
|
s = 0.2 # 20% sigma
|
||||||
g = np.array([1, 1, 1, 1, 1, 1, 1, 0, .1, 1, 1, 1, 1, 1, 1, 1, 1, 1]) # gains
|
g = np.array([1, 1, 1, 1, 1, 1, 1, 0, .1, 1, 0, 1, 1, 1, 1, 1, 1, 1]) # gains
|
||||||
ng = len(g)
|
ng = len(g)
|
||||||
if mutate_version == 1:
|
if mutate_version == 1:
|
||||||
s *= np.random.random() # sigma
|
s *= np.random.random() # sigma
|
||||||
|
|
Loading…
Reference in New Issue