Skip to content

Commit

Permalink
refactor(evo-animation) Rename Metric → Fitness
Browse files Browse the repository at this point in the history
  • Loading branch information
donRumata03 committed Feb 14, 2024
1 parent b1266d6 commit 8ba6876
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified docs/source/img/evolution_process.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions golem/visualisation/opt_history/genealogical_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ def trace_genealogical_path(individual: Individual, graph_dist: Callable[[Graph,
def plot_fitness_with_axvline(generations: List[int], fitnesses: List[float], ax: plt.Axes, current_fitness: float,
axvline_x: int = None):
ax.plot(generations, fitnesses)
ax.set_title(f'Metric dynamic,\ncurrent: {current_fitness}', fontsize=22)
ax.set_title(f'Fitness dynamic,\ncurrent: {current_fitness}', fontsize=22)
ax.set_xlabel('Generation')
ax.set_ylabel('Metric')
ax.set_ylabel('Fitness')
if axvline_x is not None:
ax.axvline(x=axvline_x, color='black')
return ax

0 comments on commit 8ba6876

Please sign in to comment.