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 optuna_utils

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


# Create a NeptuneCallback instance
neptune_callback = optuna_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.10.1.tar.gz (13.9 kB view hashes)

Uploaded source

Built Distribution

neptune_optuna-0.10.1-py3-none-any.whl (13.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page