TroglodyteDerivations
commited on
Commit
•
27849a1
1
Parent(s):
9fd13ad
Updated lines 488 and 619 with: iterations=[0, 2, 8, 10]
Browse files
app.py
CHANGED
@@ -485,7 +485,7 @@ class GWO:
|
|
485 |
#plt.close() # Close the figure to free up memory
|
486 |
#return Image.open(buf)
|
487 |
|
488 |
-
def plot_positions(self, iterations=[0,
|
489 |
"""Plot the positions of the particles over the specified iterations"""
|
490 |
# Load the all_positions data from the .npy file
|
491 |
all_positions = np.load('all_positions.npy', allow_pickle=True)
|
@@ -616,7 +616,7 @@ def optimize(npart, ndim, max_iter):
|
|
616 |
dispersion_heatmap_plot = gwo.plot_dispersion_heatmap(x_range=(-6,6), y_range=(-6,6))
|
617 |
|
618 |
# Plot the plot_positions
|
619 |
-
plot_positions = gwo.plot_positions(iterations=[0,
|
620 |
|
621 |
# Plot the plot_3d_meshgrid_contour
|
622 |
plot_3d_meshgrid_contour = gwo.plot_3d_meshgrid_contour(obj=obj)
|
|
|
485 |
#plt.close() # Close the figure to free up memory
|
486 |
#return Image.open(buf)
|
487 |
|
488 |
+
def plot_positions(self, iterations=[0, 2, 8, 10]):
|
489 |
"""Plot the positions of the particles over the specified iterations"""
|
490 |
# Load the all_positions data from the .npy file
|
491 |
all_positions = np.load('all_positions.npy', allow_pickle=True)
|
|
|
616 |
dispersion_heatmap_plot = gwo.plot_dispersion_heatmap(x_range=(-6,6), y_range=(-6,6))
|
617 |
|
618 |
# Plot the plot_positions
|
619 |
+
plot_positions = gwo.plot_positions(iterations=[0, 2, 8, 10])
|
620 |
|
621 |
# Plot the plot_3d_meshgrid_contour
|
622 |
plot_3d_meshgrid_contour = gwo.plot_3d_meshgrid_contour(obj=obj)
|