Skip to main content

Neptune + Optuna integration

Neptune is a lightweight experiment tracker that offers a single place to track, compare, store, and collaborate on experiments and models.

This integration lets you use it as an Optuna visualization dashboard to log and monitor hyperparameter sweeps live.

What will you get with this integration?

  • Log and monitor the Optuna hyperparameter sweep live:
    • values and params for each Trial
    • best values and params for the Study
    • hardware consumption and console logs
    • interactive plots from the optuna.visualization module
    • parameter distributions for each Trial
    • Study object itself for 'InMemoryStorage' or the database location for the Studies with database storage
  • Load the Study directly from the existing Neptune run

image

Resources

Example

On the command line:

pip install neptune-optuna

In Python:

import neptune
import neptune.integrations.optuna as npt_utils

# Start a run
run = neptune.init_run(
    api_token=neptune.ANONYMOUS_API_TOKEN,
    project="common/optuna-integration",
)

# Create a NeptuneCallback instance
neptune_callback = npt_utils.NeptuneCallback(run)

# Pass the callback to study.optimize()
study = optuna.create_study(direction="maximize")
study.optimize(objective, n_trials=100, callbacks=[neptune_callback])

# Watch the optimization live in Neptune

Support

If you got stuck or simply want to talk to us, here are your options:

  • Check our FAQ page
  • You can submit bug reports, feature requests, or contributions directly to the repository.
  • Chat! When in the Neptune application click on the blue message icon in the bottom-right corner and send a message. A real person will talk to you ASAP (typically very ASAP),
  • You can just shoot us an email at support@neptune.ai

Metadata

Release files for neptune-optuna 1.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neptune-optuna 1.4.1
File Size Uploaded
neptune_optuna-1.4.1.tar.gz 14.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for neptune-optuna 1.4.1
File Interpreter ABI Platform
neptune_optuna-1.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 28.5 kB

Release files / neptune_optuna-1.4.1.tar.gz

Download URL neptune_optuna-1.4.1.tar.gz
Size 14.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ca8886eff35986a33650de7091cacd7caa8d5602c2bf22f5a3478c2915a53453
BLAKE2b-256 checksum
How to use checksums
66787b945c569f3712c8e95a40c7a90e047dd8a2e155aeefc352067e5d40eb4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release files / neptune_optuna-1.4.1-py3-none-any.whl

Download URL neptune_optuna-1.4.1-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
569509eafaae9ecac060cce4925f0c4bc5af71fc3e4d536ec0c2da4810b1efdb
BLAKE2b-256 checksum
How to use checksums
12c200adfd18452e2fe451c3049f5423379ffaf71a4056919e8fe8908467eab5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release history Release notifications | RSS feed

This release

1.4.1 This release

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.11.0

2 release files

0.10.1

2 release files

0.9.15

1 release file

0.9.14

1 release file

0.9.13

1 release file

0.9.12

1 release file

0.9.11

1 release file

0.9.10

1 release file

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page