[new] Implement container

This commit is contained in:
2020-12-19 22:32:38 +00:00
parent e120708d8d
commit 89d429f69b
24 changed files with 135 additions and 115 deletions

View File

@@ -1,5 +1,15 @@
import matplotlib.pyplot as plt
def plot_learning(fitness_list):
"""
Plot the fitness through iterations.
"""
plt.plot([i for i in range(len(fitness_list))], fitness_list)
plt.ylabel("Fitness")
plt.xlabel("Iteration")
plt.show()
def plotTSP(paths, points, num_iters=1):
"""