Skip to main content

Neptune.ai Optuna integration library

Project description

Neptune + Optuna Integration

Neptune is a tool for experiment tracking, model registry, data versioning, and monitoring model training live.

This integration lets you use it as an Optuna visualization dashboard to log and monitor hyperparameter sweep 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 and more.

image Parallel coordinate plot logged to Neptune

Resources

Example

# On the command line:
pip install neptune-client[optuna] optuna
# In Python:
import neptune.new as neptune
import neptune.new.integrations.optuna as npt_utils

# Start a run
run = neptune.init(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-0.11.0.tar.gz (14.1 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-0.11.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: neptune_optuna-0.11.0.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for neptune_optuna-0.11.0.tar.gz
Algorithm Hash digest
SHA256 223db9adda44ae8306314229dec24ef05d1b09d7273deb42517458d7ac1744ea
MD5 f024c8f9c5fe408476690388dca82f55
BLAKE2b-256 c2814119935284a64ff16cf5d28d58d151f54156fff0bc89a5fb5814bbe5269d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for neptune_optuna-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee3a834830289eb6f2447e9730692b2fd22d49e82667fe39182d5e6b22c37709
MD5 5cc95f8165c88c19885e56289d1fcbde
BLAKE2b-256 f4b8d8d10a4dca1fac4acffd33bc17f2b1d89163c66a66e4138b91ff3f9b2ea0

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