Skip to main content

Neptune.ai Optuna integration library

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neptune_optuna-1.2.0.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

neptune_optuna-1.2.0-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file neptune_optuna-1.2.0.tar.gz.

File metadata

  • Download URL: neptune_optuna-1.2.0.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for neptune_optuna-1.2.0.tar.gz
Algorithm Hash digest
SHA256 b0c7df2afc704357cb6510f8e6525a38a689049059076afe986ca039264e4210
MD5 a2e006b5d17f81921aee8a5ef8b96e21
BLAKE2b-256 d7e4c947b537a2e2af78c2a547b5b3089bca7b2fbadbf3a99b0adb5687dc7084

See more details on using hashes here.

File details

Details for the file neptune_optuna-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: neptune_optuna-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for neptune_optuna-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b628289be090e3fcf0c4107ce33684f0fefbfa80baf247aadccd8c8f8b654756
MD5 e6db1aa23b99c1c7df8277a0255f704c
BLAKE2b-256 aad453a888e72d19fad14f34369faff55cda47ac36dacbb010774ad55d5d6aad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page