updates
This commit is contained in:
parent
bd92457604
commit
bfbc54666e
|
@ -703,7 +703,7 @@ def plot_targets_txt(): # from utils.utils import *; plot_targets_txt()
|
||||||
plt.savefig('targets.jpg', dpi=200)
|
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
|
# Plot hyperparameter evolution results in evolve.txt
|
||||||
x = np.loadtxt('evolve.txt')
|
x = np.loadtxt('evolve.txt')
|
||||||
f = fitness(x)
|
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.subplot(4, 5, i + 1)
|
||||||
plt.plot(mu, f.max(), 'o', markersize=10)
|
plt.plot(mu, f.max(), 'o', markersize=10)
|
||||||
plt.plot(y, f, '.')
|
plt.plot(y, f, '.')
|
||||||
plt.title('%s = %g' % (k, v), fontdict={'size': 8}) # limit to 40 characters
|
plt.title('%s = %.3g' % (k, mu), fontdict={'size': 9}) # limit to 40 characters
|
||||||
print(list(hyp.keys())[i], '%.4g' % mu)
|
print('%15s: %.3g' % (k, mu))
|
||||||
fig.tight_layout()
|
fig.tight_layout()
|
||||||
plt.savefig('evolve.png', dpi=200)
|
plt.savefig('evolve.png', dpi=200)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue