File tree 2 files changed +5
-24
lines changed
2 files changed +5
-24
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ def get_non_dominated_set(self, curr_solutions):
64
64
65
65
def non_dominated_sorting (self , fitness ):
66
66
"""
67
- Apply the non-dominant sorting over the fitness to create the pareto fronts based on non-dominaned sorting of the solutions.
67
+ Apply non-dominant sorting over the fitness to create the pareto fronts based on non-dominaned sorting of the solutions.
68
68
69
69
Parameters
70
70
----------
@@ -114,7 +114,7 @@ def non_dominated_sorting(self, fitness):
114
114
115
115
def crowding_distance (self , pareto_front , fitness ):
116
116
"""
117
- Calculate the crowding dstance for all solutions in the current pareto front.
117
+ Calculate the crowding distance for all solutions in the current pareto front.
118
118
119
119
Parameters
120
120
----------
Original file line number Diff line number Diff line change 3
3
"""
4
4
5
5
import numpy
6
- import warnings
7
6
import matplotlib .pyplot
8
7
import pygad
9
8
10
9
class Plot :
11
- def plot_result (self ,
12
- title = "PyGAD - Generation vs. Fitness" ,
13
- xlabel = "Generation" ,
14
- ylabel = "Fitness" ,
15
- linewidth = 3 ,
16
- font_size = 14 ,
17
- plot_type = "plot" ,
18
- color = "#64f20c" ,
19
- save_dir = None ):
20
-
21
- if not self .suppress_warnings :
22
- warnings .warn ("Please use the plot_fitness() method instead of plot_result(). The plot_result() method will be removed in the future." )
23
-
24
- return self .plot_fitness (title = title ,
25
- xlabel = xlabel ,
26
- ylabel = ylabel ,
27
- linewidth = linewidth ,
28
- font_size = font_size ,
29
- plot_type = plot_type ,
30
- color = color ,
31
- save_dir = save_dir )
10
+
11
+ def __init__ ():
12
+ pass
32
13
33
14
def plot_fitness (self ,
34
15
title = "PyGAD - Generation vs. Fitness" ,
You can’t perform that action at this time.
0 commit comments