A collection and visualization of black-box objective functions
Project description
Surfaces
A collection and visualization of single objective black-box functions for optimization benchmarking
Visualizations
Objective Function | Heatmap | Surface Plot |
---|---|---|
Sphere function |
||
Rastrigin function |
||
Ackley function |
||
Rosenbrock function |
||
Beale function |
||
Himmelblaus function |
||
Hölder Table function |
||
Cross-In-Tray function |
Installation
The most recent version of Surfaces is available on PyPi:
pip install surfaces
Example
import numpy as np
from surfaces.mathematical_functions import SphereFunction, AckleyFunction
from surfaces.visualize import plotly_surface
sphere_function = SphereFunction(n_dim=2, metric="score")
ackley_function = AckleyFunction(metric="loss")
step_ = 0.05
min_ = 10
max_ = 10
search_space = {
"x0": np.arange(-min_, max_, step_),
"x1": np.arange(-min_, max_, step_),
}
plotly_surface(sphere_function.objective_function, search_space).show()
plotly_surface(ackley_function.objective_function, search_space).show()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
surfaces-0.5.1-py3-none-any.whl
(130.7 kB
view details)
File details
Details for the file surfaces-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: surfaces-0.5.1-py3-none-any.whl
- Upload date:
- Size: 130.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfcaea02a6bc44ac417667b0ed5531f9c972af4bfdfbcc2c0d8002e997d1a46b |
|
MD5 | b56847312c7ede29aae251f805450a49 |
|
BLAKE2b-256 | 08da1707a16131015a86c9b05d4b7520ea74259b1ce97e6418b865b95aa7b2df |