Optunacy - alternate Optuna contour plotter
Plots Optuna contour plots trivially and with detailed mouseovers. It collects data from all the hashes in Optuna, as well as the Objectives if you provide them.
It provides mouseovers with details, too.
Example
from optunacy.oplot import OPlot
def optuna_objective(trial, train_loader, test_loader):
...
trial.set_user_attr("Neurons per Hidden Layer", nphl)
...
# The objectives have a printable name and direction
return validation_accuracy, spikes_per_digit
objective_names = ["Validation Accuracy", "Spikes per Digit"]
objective_directions = ["maximize", "minimize"]
study = optuna.create_study(study_name="Minimize spikes, maximize accuracy",
directions=objective_directions)
study.optimize( lambda trial:
optuna_objective(trial, train_loader, test_loader),
n_trials=100)
see = OPlot(study, objective_names)
see.plot("Hidden Layers", "Neurons per Hidden Layer", "Validation Accuracy", z_clip=(0.8,1))
Options
The plot function has these options:
def plot(self,
x_name, # string
y_name, # string
z_name=None, # string
x_range=None, # range, ex: x_range=(3,9)
y_range=None, # range
z_clip=None, # Clamps colors to max and min
interpol="linear"): # <a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.griddata.html">interpolation method</a>
Installation
pip install optunacy
Metadata
Release files for optunacy 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| optunacy-0.3.3.tar.gz | 16.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| optunacy-0.3.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.4 kB
Release files / optunacy-0.3.3.tar.gz
| Download URL | optunacy-0.3.3.tar.gz |
|---|---|
| Size | 16.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a907fd979fb1c73be3cad012e2e6bb7dad21fd312f524fa8b844e0fd250990e
|
|
BLAKE2b-256 checksum How to use checksums |
88c2f12eeb22520749b08ab86b98be3600a398bdb64b7cd754715fc47635ce05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.3 Darwin/23.2.0
|
Release files / optunacy-0.3.3-py3-none-any.whl
| Download URL | optunacy-0.3.3-py3-none-any.whl |
|---|---|
| Size | 16.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
246eeecfc5e495fccecc94cb693a0123b7d5bcd98f9f96fc96613a24e2f3e056
|
|
BLAKE2b-256 checksum How to use checksums |
6b08ba9fcb2d49271ac8040c812d07737772a41519e705a804873026d523884f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.3 Darwin/23.2.0
|
Security for optunacy 0.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.