-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c83cca3
Showing
376 changed files
with
53,765 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: ef6bfc290d10a00f8cd846640cf76085 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+8.63 KB
.doctrees/api/generated/cbx.utils.objective_handling.cbx_objective.doctree
Binary file not shown.
Binary file added
BIN
+8.32 KB
.doctrees/api/generated/cbx.utils.objective_handling.cbx_objective_f1D.doctree
Binary file not shown.
Binary file added
BIN
+8.62 KB
.doctrees/api/generated/cbx.utils.objective_handling.cbx_objective_f2D.doctree
Binary file not shown.
Binary file added
BIN
+8.59 KB
.doctrees/api/generated/cbx.utils.objective_handling.cbx_objective_fh.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+7.87 KB
.doctrees/api/generated/cbx.utils.resampling.apply_resamplings.doctree
Binary file not shown.
Binary file added
BIN
+9.18 KB
.doctrees/api/generated/cbx.utils.resampling.ensemble_update_resampling.doctree
Binary file not shown.
Binary file added
BIN
+10.6 KB
.doctrees/api/generated/cbx.utils.resampling.loss_update_resampling.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+11.4 KB
.doctrees/userguide/generated/cbx.objectives.Ackley_multimodal.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+12.4 KB
.doctrees/userguide/generated/cbx.objectives.Rastrigin_multimodal.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+10.8 KB
.doctrees/userguide/generated/cbx.objectives.three_hump_camel.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
28 changes: 28 additions & 0 deletions
28
_downloads/009bd551118d1b53767e29a645032610/cbx-objectives-three_hump_camel-1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import matplotlib.pyplot as plt | ||
from matplotlib import cm | ||
import numpy as np | ||
from cbx.objectives import three_hump_camel | ||
fig = plt.figure(figsize=(15,5)) | ||
x_min = -2. | ||
x_max = 2. | ||
y_min = -2. | ||
y_max = 2. | ||
f = three_hump_camel() | ||
|
||
num_pts_landscape = 100 | ||
xx = np.linspace(x_min, x_max, num_pts_landscape) | ||
yy = np.linspace(y_min, y_max, num_pts_landscape) | ||
XX, YY = np.meshgrid(xx,yy) | ||
XXYY = np.stack((XX.T,YY.T)).T | ||
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2)) | ||
Z[:,:,0:2] = XXYY | ||
ZZ = f(Z) | ||
|
||
ax0 = fig.add_subplot(121) | ||
ax1 = fig.add_subplot(122, projection='3d') | ||
cs = ax0.contourf(XX,YY,ZZ, 20, cmap=cm.jet) | ||
ax0.contour(cs, colors='orange', alpha=0.2) | ||
ax0.plot(f.minima[:, 0], f.minima[:, 1], color='orange', marker='x', markersize=5) | ||
ax1.plot_surface(XX,YY,ZZ, cmap=cm.jet) | ||
ax0.set_title('Contour plot') | ||
ax1.set_title('Surface plot') |
Binary file added
BIN
+428 KB
_downloads/0208a2163b1dcf1f3f3d4d14842dd037/cbx-objectives-Easom-1.hires.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+345 KB
_downloads/063071fffdedfaf840bf58fd13d07892/cbx-objectives-Rastrigin-1.pdf
Binary file not shown.
Binary file added
BIN
+378 KB
_downloads/0e0d454a4088d6d1081f8db1924cc0b3/cbx-objectives-drop_wave-1.pdf
Binary file not shown.
29 changes: 29 additions & 0 deletions
29
_downloads/13c14c786852ada20bf945260908eca0/cbx-objectives-McCormick-1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import matplotlib.pyplot as plt | ||
from matplotlib import cm | ||
import numpy as np | ||
from cbx.objectives import McCormick | ||
fig = plt.figure(figsize=(15,5)) | ||
x_min = -2. | ||
x_max = 3. | ||
y_min = -3 | ||
y_max = 4 | ||
f = McCormick() | ||
|
||
num_pts_landscape = 100 | ||
xx = np.linspace(x_min, x_max, num_pts_landscape) | ||
yy = np.linspace(y_min, y_max, num_pts_landscape) | ||
XX, YY = np.meshgrid(xx,yy) | ||
XXYY = np.stack((XX.T,YY.T)).T | ||
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2)) | ||
Z[:,:,0:2] = XXYY | ||
ZZ = f(Z) | ||
|
||
ax0 = fig.add_subplot(121) | ||
ax1 = fig.add_subplot(122, projection='3d') | ||
cs = ax0.contourf(XX,YY,ZZ, 20, cmap=cm.jet) | ||
ax0.contour(cs, colors='orange', alpha=0.2) | ||
ax0.plot(-0.54719,-1.54719, color='orange', marker='x', markersize=10) | ||
ax0.plot(1.54719, 0.54719, color='orange', marker='x', markersize=10) | ||
ax1.plot_surface(XX,YY,ZZ, cmap=cm.jet) | ||
ax0.set_title('Contour plot') | ||
ax1.set_title('Surface plot') |
Binary file added
BIN
+471 KB
_downloads/13fdb547831a46ba0b09165b9418b5bb/cbx-objectives-Michalewicz-1.pdf
Binary file not shown.
Binary file added
BIN
+1.49 MB
_downloads/15a7271ade1ad5b0e6bf27b9b967634d/cbx-objectives-eggholder-1.pdf
Binary file not shown.
Binary file added
BIN
+528 KB
_downloads/16a8ac2e9ab96fbf21da0746fa4b7e7e/cbx-objectives-Himmelblau-1.hires.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions
28
_downloads/1e06862de5b667f4a10c7de9b218b678/cbx-objectives-Michalewicz-1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import matplotlib.pyplot as plt | ||
from matplotlib import cm | ||
import numpy as np | ||
from cbx.objectives import Michalewicz | ||
fig = plt.figure(figsize=(15,5)) | ||
x_min = 0. | ||
x_max = 4. | ||
y_min = x_min | ||
y_max = x_max | ||
f = Michalewicz() | ||
|
||
num_pts_landscape = 200 | ||
xx = np.linspace(x_min, x_max, num_pts_landscape) | ||
yy = np.linspace(y_min, y_max, num_pts_landscape) | ||
XX, YY = np.meshgrid(xx,yy) | ||
XXYY = np.stack((XX.T,YY.T)).T | ||
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2)) | ||
Z[:,:,0:2] = XXYY | ||
ZZ = f(Z) | ||
|
||
ax0 = fig.add_subplot(121) | ||
ax1 = fig.add_subplot(122, projection='3d') | ||
cs = ax0.contourf(XX,YY,ZZ,30, cmap=cm.jet) | ||
ax0.contour(cs, colors='orange', alpha=0.2) | ||
ax0.scatter(f.minima[:, 0], f.minima[:, 1], color='orange', marker='x', s=30) | ||
ax1.plot_surface(XX,YY,ZZ, cmap=cm.jet) | ||
ax0.set_title('Contour plot') | ||
ax1.set_title('Surface plot') |
Binary file added
BIN
+370 KB
_downloads/1ff48ee73f28c512531e9f65ff7c1e42/cbx-objectives-eggholder-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+187 KB
_downloads/28b63b435ba469db313bef961adf2c69/cbx-objectives-Ackley-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+252 KB
_downloads/2eabe9ba4c9108990289bdd939d55c14/cbx-objectives-Rosenbrock-1.pdf
Binary file not shown.
Binary file added
BIN
+141 KB
_downloads/316b3b7dcff9004422312b3fd958e992/cbx-objectives-McCormick-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+997 KB
_downloads/31c2b16f9f26a5da305e547a53eee132/cbx-objectives-Rastrigin-1.hires.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+311 KB
_downloads/372d7759385f0c0a2e4e5e2485566e6f/cbx-objectives-Rastrigin-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+168 KB
_downloads/3c18e06ddc0910fb0d322a76c301ed6b/cbx-objectives-Easom-1.pdf
Binary file not shown.
Binary file added
BIN
+621 KB
_downloads/3d2ecf31d7fb6529078bbac1b135353d/cbx-objectives-Ackley-1.hires.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+223 KB
_downloads/4511bc74be547142374268a1a918df66/cbx-objectives-Ackley-1.pdf
Binary file not shown.
Binary file added
BIN
+1.44 MB
_downloads/4a7ed2f62856c46519bca46601c7e348/cbx-objectives-eggholder-1.hires.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions
28
_downloads/4c086186791e606f5016df5d992f1e14/cbx-objectives-Ackley-1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import matplotlib.pyplot as plt | ||
from matplotlib import cm | ||
import numpy as np | ||
from cbx.objectives import Ackley | ||
fig = plt.figure(figsize=(15,5)) | ||
x_min = -2. | ||
x_max = 2. | ||
y_min = -2. | ||
y_max = 2. | ||
f = Ackley() | ||
|
||
num_pts_landscape = 100 | ||
xx = np.linspace(x_min, x_max, num_pts_landscape) | ||
yy = np.linspace(y_min, y_max, num_pts_landscape) | ||
XX, YY = np.meshgrid(xx,yy) | ||
XXYY = np.stack((XX.T,YY.T)).T | ||
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2)) | ||
Z[:,:,0:2] = XXYY | ||
ZZ = f(Z) | ||
|
||
ax0 = fig.add_subplot(121) | ||
ax1 = fig.add_subplot(122, projection='3d') | ||
cs = ax0.contourf(XX,YY,ZZ, 20, cmap=cm.jet) | ||
ax0.contour(cs, colors='orange', alpha=0.2) | ||
ax0.plot(f.minima[:, 0], f.minima[:, 1], color='orange', marker='x', markersize=5) | ||
ax1.plot_surface(XX,YY,ZZ, cmap=cm.jet) | ||
ax0.set_title('Contour plot') | ||
ax1.set_title('Surface plot') |
Binary file added
BIN
+715 KB
...nloads/4ce6bbb184e3ffe9b863d81bab6eb850/cbx-objectives-Holder_table-1.hires.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+183 KB
_downloads/5983028db02509cde7156a5bb9193cec/cbx-objectives-Bukin6-1.pdf
Binary file not shown.
Binary file added
BIN
+207 KB
_downloads/61c05e9c54daf3318e759d68cd578a05/cbx-objectives-cross_in_tray-1.pdf
Binary file not shown.
Binary file added
BIN
+489 KB
_downloads/66f64b489c9dd45a49511ce168787d45/cbx-objectives-Himmelblau-1.pdf
Binary file not shown.
Binary file added
BIN
+556 KB
_downloads/6ceaf9f0982ffd0a2bd2c5c96d285d37/cbx-objectives-Rosenbrock-1.hires.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+432 KB
_downloads/6dbb9621226eb8883ffdd2384e46afad/cbx-objectives-Bukin6-1.hires.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+157 KB
_downloads/711763a12f3bb879a1c77443a0309f28/cbx-objectives-Himmelblau-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions
28
_downloads/7214f705958cce9e787109071a9f2c76/cbx-objectives-eggholder-1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import matplotlib.pyplot as plt | ||
from matplotlib import cm | ||
import numpy as np | ||
from cbx.objectives import eggholder | ||
fig = plt.figure(figsize=(15,5)) | ||
x_min = -600 | ||
x_max = 600 | ||
y_min = x_min | ||
y_max = x_max | ||
f = eggholder() | ||
|
||
num_pts_landscape = 200 | ||
xx = np.linspace(x_min, x_max, num_pts_landscape) | ||
yy = np.linspace(y_min, y_max, num_pts_landscape) | ||
XX, YY = np.meshgrid(xx,yy) | ||
XXYY = np.stack((XX.T,YY.T)).T | ||
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2)) | ||
Z[:,:,0:2] = XXYY | ||
ZZ = f(Z) | ||
|
||
ax0 = fig.add_subplot(121) | ||
ax1 = fig.add_subplot(122, projection='3d') | ||
cs = ax0.contourf(XX,YY,ZZ,30, cmap=cm.jet) | ||
ax0.contour(cs, colors='orange', alpha=0.2) | ||
ax0.scatter(f.minima[:, 0], f.minima[:, 1], color='orange', marker='x', s=30) | ||
ax1.plot_surface(XX,YY,ZZ, cmap=cm.jet) | ||
ax0.set_title('Contour plot') | ||
ax1.set_title('Surface plot') |
Binary file added
BIN
+195 KB
_downloads/7b16c591e5fff277bad662ddd55d557f/cbx-objectives-three_hump_camel-1.pdf
Binary file not shown.
28 changes: 28 additions & 0 deletions
28
_downloads/7c43d7d3aea63a44d8f5e1bcb578c726/cbx-objectives-snowflake-1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import matplotlib.pyplot as plt | ||
from matplotlib import cm | ||
import numpy as np | ||
from cbx.objectives import snowflake | ||
fig = plt.figure(figsize=(15,5)) | ||
x_min = -2.5 | ||
x_max = 2.5 | ||
y_min = -2.5 | ||
y_max = 2.5 | ||
f = snowflake() | ||
|
||
num_pts_landscape = 100 | ||
xx = np.linspace(x_min, x_max, num_pts_landscape) | ||
yy = np.linspace(y_min, y_max, num_pts_landscape) | ||
XX, YY = np.meshgrid(xx,yy) | ||
XXYY = np.stack((XX.T,YY.T)).T | ||
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2)) | ||
Z[:,:,0:2] = XXYY | ||
ZZ = f(Z) | ||
|
||
ax0 = fig.add_subplot(121) | ||
ax1 = fig.add_subplot(122, projection='3d') | ||
cs = ax0.contourf(XX,YY,ZZ, 20, cmap=cm.get_cmap('Blues')) | ||
ax0.contour(cs, colors='white', alpha=0.2) | ||
ax0.scatter(f.minima[:, 0], f.minima[:, 1], color='blue', marker='x', s=20) | ||
ax1.plot_surface(XX,YY,ZZ, cmap=cm.get_cmap('Blues')) | ||
ax0.set_title('Contour plot') | ||
ax1.set_title('Surface plot') |
Binary file added
BIN
+124 KB
_downloads/7db41e2e7d63dd2190889ca5b228ff8b/cbx-objectives-Bukin6-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+301 KB
_downloads/7f70aa6c68bb351d59faf7b0263ddd55/cbx-objectives-snowflake-1.pdf
Binary file not shown.
28 changes: 28 additions & 0 deletions
28
_downloads/84553be8258cb641ceb9ae7af1151183/cbx-objectives-Himmelblau-1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import matplotlib.pyplot as plt | ||
from matplotlib import cm | ||
import numpy as np | ||
from cbx.objectives import Himmelblau | ||
fig = plt.figure(figsize=(15,5)) | ||
x_min = -5. | ||
x_max = 5. | ||
y_min = -5. | ||
y_max = 5. | ||
f = Himmelblau() | ||
|
||
num_pts_landscape = 250 | ||
xx = np.linspace(x_min, x_max, num_pts_landscape) | ||
yy = np.linspace(y_min, y_max, num_pts_landscape) | ||
XX, YY = np.meshgrid(xx,yy) | ||
XXYY = np.stack((XX.T,YY.T)).T | ||
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2)) | ||
Z[:,:,0:2] = XXYY | ||
ZZ = f(Z) | ||
|
||
ax0 = fig.add_subplot(121) | ||
ax1 = fig.add_subplot(122, projection='3d') | ||
cs = ax0.contourf(XX,YY,ZZ, 20, cmap=cm.jet) | ||
ax0.contour(cs, colors='orange', alpha=0.2) | ||
ax0.scatter(f.minima[:, 0], f.minima[:, 1], color='orange', marker='x', s=15) | ||
ax1.plot_surface(XX,YY,ZZ, cmap=cm.jet) | ||
ax0.set_title('Contour plot') | ||
ax1.set_title('Surface plot') |
28 changes: 28 additions & 0 deletions
28
_downloads/85b2ebc6929a13672e56cedf574cede0/cbx-objectives-Bukin6-1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import matplotlib.pyplot as plt | ||
from matplotlib import cm | ||
import numpy as np | ||
from cbx.objectives import Bukin6 | ||
fig = plt.figure(figsize=(15,5)) | ||
x_min = -2. | ||
x_max = 2. | ||
y_min = -2. | ||
y_max = 2. | ||
f = Bukin6() | ||
|
||
num_pts_landscape = 100 | ||
xx = np.linspace(x_min, x_max, num_pts_landscape) | ||
yy = np.linspace(y_min, y_max, num_pts_landscape) | ||
XX, YY = np.meshgrid(xx,yy) | ||
XXYY = np.stack((XX.T,YY.T)).T | ||
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2)) | ||
Z[:,:,0:2] = XXYY | ||
ZZ = f(Z) | ||
|
||
ax0 = fig.add_subplot(121) | ||
ax1 = fig.add_subplot(122, projection='3d') | ||
cs = ax0.contourf(XX,YY,ZZ, 20, cmap=cm.jet) | ||
ax0.contour(cs, colors='orange', alpha=0.2) | ||
ax0.plot(f.minima[:, 0], f.minima[:, 1], color='orange', marker='x', markersize=5) | ||
ax1.plot_surface(XX,YY,ZZ, cmap=cm.jet) | ||
ax0.set_title('Contour plot') | ||
ax1.set_title('Surface plot') |
28 changes: 28 additions & 0 deletions
28
_downloads/8dda4c291b907384a7d71bd3b8fe9041/cbx-objectives-Rosenbrock-1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import matplotlib.pyplot as plt | ||
from matplotlib import cm | ||
import numpy as np | ||
from cbx.objectives import Rosenbrock | ||
fig = plt.figure(figsize=(15,5)) | ||
x_min = -2. | ||
x_max = 2. | ||
y_min = -1. | ||
y_max = 3. | ||
f = Rosenbrock() | ||
|
||
num_pts_landscape = 150 | ||
xx = np.linspace(x_min, x_max, num_pts_landscape) | ||
yy = np.linspace(y_min, y_max, num_pts_landscape) | ||
XX, YY = np.meshgrid(xx,yy) | ||
XXYY = np.stack((XX.T,YY.T)).T | ||
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2)) | ||
Z[:,:,0:2] = XXYY | ||
ZZ = f(Z) | ||
|
||
ax0 = fig.add_subplot(121) | ||
ax1 = fig.add_subplot(122, projection='3d') | ||
cs = ax0.contourf(XX,YY,ZZ, 20, cmap=cm.jet) | ||
ax0.contour(cs, colors='orange', alpha=0.2) | ||
ax0.plot(1,1, color='orange', marker='x', markersize=10) | ||
ax1.plot_surface(XX,YY,ZZ, cmap=cm.jet) | ||
ax0.set_title('Contour plot') | ||
ax1.set_title('Surface plot') |
28 changes: 28 additions & 0 deletions
28
_downloads/900cf879deda88117618bcae1a84917e/cbx-objectives-cross_in_tray-1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import matplotlib.pyplot as plt | ||
from matplotlib import cm | ||
import numpy as np | ||
from cbx.objectives import cross_in_tray | ||
fig = plt.figure(figsize=(15,5)) | ||
x_min = -2. | ||
x_max = 2. | ||
y_min = -2. | ||
y_max = 2. | ||
f = cross_in_tray() | ||
|
||
num_pts_landscape = 100 | ||
xx = np.linspace(x_min, x_max, num_pts_landscape) | ||
yy = np.linspace(y_min, y_max, num_pts_landscape) | ||
XX, YY = np.meshgrid(xx,yy) | ||
XXYY = np.stack((XX.T,YY.T)).T | ||
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2)) | ||
Z[:,:,0:2] = XXYY | ||
ZZ = f(Z) | ||
|
||
ax0 = fig.add_subplot(121) | ||
ax1 = fig.add_subplot(122, projection='3d') | ||
cs = ax0.contourf(XX,YY,ZZ, 20, cmap=cm.jet) | ||
ax0.contour(cs, colors='orange', alpha=0.2) | ||
ax0.scatter(f.minima[:, 0], f.minima[:, 1], color='orange', marker='x', s=20) | ||
ax1.plot_surface(XX,YY,ZZ, cmap=cm.jet) | ||
ax0.set_title('Contour plot') | ||
ax1.set_title('Surface plot') |
Binary file added
BIN
+166 KB
_downloads/97f070d1491e67b4ad8d199c40fab930/cbx-objectives-three_hump_camel-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+199 KB
_downloads/98d1b90e7a165f2676f268df75d06846/cbx-objectives-snowflake-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+121 KB
_downloads/9d57f00c22a6a2bd3823a5a0f8d2e14b/cbx-objectives-Easom-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions
28
_downloads/a2645f411226f900fe802789af2551df/cbx-objectives-Rastrigin-1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import matplotlib.pyplot as plt | ||
from matplotlib import cm | ||
import numpy as np | ||
from cbx.objectives import Rastrigin | ||
fig = plt.figure(figsize=(15,5)) | ||
x_min = -2. | ||
x_max = 2. | ||
y_min = -2. | ||
y_max = 2. | ||
f = Rastrigin() | ||
|
||
num_pts_landscape = 100 | ||
xx = np.linspace(x_min, x_max, num_pts_landscape) | ||
yy = np.linspace(y_min, y_max, num_pts_landscape) | ||
XX, YY = np.meshgrid(xx,yy) | ||
XXYY = np.stack((XX.T,YY.T)).T | ||
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2)) | ||
Z[:,:,0:2] = XXYY | ||
ZZ = f(Z) | ||
|
||
ax0 = fig.add_subplot(121) | ||
ax1 = fig.add_subplot(122, projection='3d') | ||
cs = ax0.contourf(XX,YY,ZZ, 20, cmap=cm.jet) | ||
ax0.contour(cs, colors='orange', alpha=0.2) | ||
ax0.plot(f.minima[:, 0], f.minima[:, 1], color='orange', marker='x', markersize=5) | ||
ax1.plot_surface(XX,YY,ZZ, cmap=cm.jet) | ||
ax0.set_title('Contour plot') | ||
ax1.set_title('Surface plot') |
Binary file added
BIN
+859 KB
_downloads/a286ef6969ea6b5c84cd383b3666b33c/cbx-objectives-drop_wave-1.hires.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+210 KB
_downloads/a3f96e49e02bafe0bd07277b39c3026a/cbx-objectives-Holder_table-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+299 KB
_downloads/a485317e10fd9b019da6b1999c00aadc/cbx-objectives-Holder_table-1.pdf
Binary file not shown.
Binary file added
BIN
+561 KB
...loads/a7f1665e363826ba8261eb75ec75795b/cbx-objectives-cross_in_tray-1.hires.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+574 KB
...ds/b6dd92d6dbb0af2b1cf2f249e2a19f15/cbx-objectives-three_hump_camel-1.hires.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions
28
_downloads/bc78261e6df645d62c5d3036e5349ed5/cbx-objectives-Easom-1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import matplotlib.pyplot as plt | ||
from matplotlib import cm | ||
import numpy as np | ||
from cbx.objectives import Easom | ||
fig = plt.figure(figsize=(15,5)) | ||
x_min = 0 | ||
x_max = 2. * np.pi | ||
y_min = 0. | ||
y_max = 2. * np.pi | ||
f = Easom() | ||
|
||
num_pts_landscape = 100 | ||
xx = np.linspace(x_min, x_max, num_pts_landscape) | ||
yy = np.linspace(y_min, y_max, num_pts_landscape) | ||
XX, YY = np.meshgrid(xx,yy) | ||
XXYY = np.stack((XX.T,YY.T)).T | ||
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2)) | ||
Z[:,:,0:2] = XXYY | ||
ZZ = f(Z) | ||
|
||
ax0 = fig.add_subplot(121) | ||
ax1 = fig.add_subplot(122, projection='3d') | ||
cs = ax0.contourf(XX,YY,ZZ, 20, cmap=cm.jet) | ||
ax0.contour(cs, colors='orange', alpha=0.2) | ||
ax0.plot(f.minima[:, 0], f.minima[:, 1], color='orange', marker='x', markersize=5) | ||
ax1.plot_surface(XX,YY,ZZ, cmap=cm.jet) | ||
ax0.set_title('Contour plot') | ||
ax1.set_title('Surface plot') |
Binary file added
BIN
+232 KB
_downloads/c2dd0835dab74d648e72699e8f5eba2b/cbx-objectives-drop_wave-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions
28
_downloads/c46ec1404ee3562322afdf14b495e9a3/cbx-objectives-Holder_table-1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import matplotlib.pyplot as plt | ||
from matplotlib import cm | ||
import numpy as np | ||
from cbx.objectives import Holder_table | ||
fig = plt.figure(figsize=(15,5)) | ||
x_min = -10. | ||
x_max = 10. | ||
y_min = -10. | ||
y_max = 10. | ||
f = Holder_table() | ||
|
||
num_pts_landscape = 100 | ||
xx = np.linspace(x_min, x_max, num_pts_landscape) | ||
yy = np.linspace(y_min, y_max, num_pts_landscape) | ||
XX, YY = np.meshgrid(xx,yy) | ||
XXYY = np.stack((XX.T,YY.T)).T | ||
Z = np.zeros((num_pts_landscape,num_pts_landscape, 2)) | ||
Z[:,:,0:2] = XXYY | ||
ZZ = f(Z) | ||
|
||
ax0 = fig.add_subplot(121) | ||
ax1 = fig.add_subplot(122, projection='3d') | ||
cs = ax0.contourf(XX,YY,ZZ, 20, cmap=cm.jet) | ||
ax0.contour(cs, colors='orange', alpha=0.2) | ||
ax0.scatter(f.minima[:, 0], f.minima[:, 1], color='orange', marker='x', s=20) | ||
ax1.plot_surface(XX,YY,ZZ, cmap=cm.jet) | ||
ax0.set_title('Contour plot') | ||
ax1.set_title('Surface plot') |
Binary file added
BIN
+733 KB
_downloads/c7e05d827a2ddd8142ff0319aa728711/cbx-objectives-snowflake-1.hires.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+475 KB
_downloads/ca2188c2c20578c822d8f0e8fce0e4bc/cbx-objectives-McCormick-1.hires.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+178 KB
_downloads/ce15ad0f3f96766211078cf5f307eb3a/cbx-objectives-cross_in_tray-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+156 KB
_downloads/d2a26a46ed990103f4d51a65dc554e0c/cbx-objectives-Rosenbrock-1.png
Oops, something went wrong.
Binary file added
BIN
+163 KB
_downloads/ed62914c5655d136217ab1b2275aca3c/cbx-objectives-McCormick-1.pdf
Binary file not shown.
Binary file added
BIN
+154 KB
_downloads/eda9ece50fbd630b9e605235ee3a6dc7/cbx-objectives-Michalewicz-1.png
Oops, something went wrong.
Binary file added
BIN
+533 KB
_downloads/ee8715259c971896bf6c71444cae77cb/cbx-objectives-Michalewicz-1.hires.png
Oops, something went wrong.
Oops, something went wrong.