updates
This commit is contained in:
parent
a812b1f8b1
commit
3b108afac3
2
train.py
2
train.py
|
@ -328,7 +328,7 @@ def print_mutation(hyp, results):
|
|||
with open('evolve.txt', 'a') as f: # append result
|
||||
f.write(c + b + '\n')
|
||||
x = np.unique(np.loadtxt('evolve.txt', ndmin=2), axis=0) # load unique rows
|
||||
np.savetxt('evolve3.txt', x[np.argsort(-fitness(x))], '%11.3g') # save sort by fitness
|
||||
np.savetxt('evolve.txt', x[np.argsort(-fitness(x))], '%11.3g') # save sort by fitness
|
||||
os.system('gsutil cp evolve.txt gs://%s' % opt.bucket) # upload evolve.txt
|
||||
else:
|
||||
with open('evolve.txt', 'a') as f:
|
||||
|
|
Loading…
Reference in New Issue