From bfbc54666e9f52e956055d0336d38895610db8cb Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Thu, 25 Jul 2019 18:09:24 +0200 Subject: [PATCH] updates --- utils/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/utils.py b/utils/utils.py index c5993f59..dd7018d9 100755 --- a/utils/utils.py +++ b/utils/utils.py @@ -703,7 +703,7 @@ def plot_targets_txt(): # from utils.utils import *; plot_targets_txt() plt.savefig('targets.jpg', dpi=200) -def plot_evolution_results(hyp): # from utils.utils import *; plot_evolution_results() +def plot_evolution_results(hyp): # from utils.utils import *; plot_evolution_results(hyp) # Plot hyperparameter evolution results in evolve.txt x = np.loadtxt('evolve.txt') f = fitness(x) @@ -717,8 +717,8 @@ def plot_evolution_results(hyp): # from utils.utils import *; plot_evolution_re plt.subplot(4, 5, i + 1) plt.plot(mu, f.max(), 'o', markersize=10) plt.plot(y, f, '.') - plt.title('%s = %g' % (k, v), fontdict={'size': 8}) # limit to 40 characters - print(list(hyp.keys())[i], '%.4g' % mu) + plt.title('%s = %.3g' % (k, mu), fontdict={'size': 9}) # limit to 40 characters + print('%15s: %.3g' % (k, mu)) fig.tight_layout() plt.savefig('evolve.png', dpi=200)