[new] Implement container
This commit is contained in:
@@ -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):
|
||||
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user