updates
This commit is contained in:
parent
48f6529fd1
commit
ee410481a0
11
train.py
11
train.py
|
@ -245,13 +245,12 @@ def train(
|
||||||
|
|
||||||
def print_mutation(hyp, results):
|
def print_mutation(hyp, results):
|
||||||
# Write mutation results
|
# Write mutation results
|
||||||
sl = '%11s' * len(hyp) % tuple(hyp.keys()) # hyperparam keys
|
a = '%11s' * len(hyp) % tuple(hyp.keys()) # hyperparam keys
|
||||||
sr = '%11.3g' * len(results) % results # results (P, R, mAP, F1, test_loss)
|
b = '%11.3g' * len(results) % results # results (P, R, mAP, F1, test_loss)
|
||||||
sh = '%11.4g' * len(hyp) % tuple(hyp.values()) # hyperparam values
|
c = '%11.4g' * len(hyp) % tuple(hyp.values()) # hyperparam values
|
||||||
print('\n%s\n%s\nEvolved fitness: %s\n' % (sl, sh, sr))
|
print('\n%s\n%s\nEvolved fitness: %s\n' % (a, b, c))
|
||||||
|
|
||||||
with open('evolve.txt', 'a') as f:
|
with open('evolve.txt', 'a') as f:
|
||||||
f.write(sr + sh + '\n')
|
f.write(a + b + '\n')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in New Issue