Unverified 提交 f64fab58 authored 作者: imyhxy's avatar imyhxy 提交者: GitHub

Fixed 'meta' and 'hyp' may out of order when using evolve (#4657)

* Fixed 'meta' and 'hyp' may out of order when using evolve * Update gitignore
上级 fad57c29
......@@ -76,7 +76,7 @@ sdist/
var/
wheels/
*.egg-info/
wandb/
/wandb/
.installed.cfg
*.egg
......
......@@ -570,7 +570,7 @@ def main(opt):
mp, s = 0.8, 0.2 # mutation probability, sigma
npr = np.random
npr.seed(int(time.time()))
g = np.array([x[0] for x in meta.values()]) # gains 0-1
g = np.array([meta[k][0] for k in hyp.keys()]) # gains 0-1
ng = len(meta)
v = np.ones(ng)
while all(v == 1): # mutate until a change occurs (prevent duplicates)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论