Skip to main content

Neptune.ai integration with Kedro

Project description

Neptune + Kedro integration

Kedro plugin for experiment tracking and metadata management. It lets you browse, filter and sort runs in a nice UI, visualize node/pipeline metadata, and compare pipelines.

What will you get with this integration?

  • browse, filter, and sort your model training runs
  • compare nodes and pipelines on metrics, visual node outputs, and more
  • display all pipeline metadata including learning curves for metrics, plots, and images, rich media like video and audio or interactive visualizations from Plotly, Altair, or Bokeh
  • and do whatever else you would expect from a modern ML metadata store

image Kedro pipeline metadata in custom dashboard in the Neptune web app

Note: The Kedro-Neptune plugin supports distributed pipeline execution and works in Kedro setups that use orchestrators like Airflow or Kubeflow.

Resources

Example

On the command line:

pip install kedro neptune[kedro]
kedro new --starter=pandas-iris

In your Kedro project directory:

kedro neptune init

In a pipeline node, in nodes.py:

import neptune

# Add a Neptune run handler to the report_accuracy() function

def report_accuracy(
    y_pred: pd.Series,
    y_test: pd.Series,
    neptune_run: neptune.handler.Handler,
) -> None:
    accuracy = (y_pred == y_test).sum() / len(y_test)
    logger = logging.getLogger(__name__)
    logger.info("Model has accuracy of %.3f on test data.", accuracy)

    # Log metrics to the Neptune run
    neptune_run["nodes/report/accuracy"] = accuracy * 100

# Add the Neptune run handler to the Kedro pipeline
node(
    func=report_accuracy,
    inputs=["y_pred", "y_test", "neptune_run"],
    outputs=None,
    name="report_accuracy",
)

On the command line, run the Kedro pipeline:

kedro run

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

kedro_neptune-0.1.6.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

kedro_neptune-0.1.6-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file kedro_neptune-0.1.6.tar.gz.

File metadata

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

File hashes

Hashes for kedro_neptune-0.1.6.tar.gz
Algorithm Hash digest
SHA256 ba1a30e61c87063bd50aaf76ff1f8f0955a11151ef09f2b8ebfff05d89332b3d
MD5 00959a576995e47c1344c13cc87b0112
BLAKE2b-256 7fd6702bbf816508b72ce6fcd798008fcab328a2803fda36ec0b55583d372fb8

See more details on using hashes here.

File details

Details for the file kedro_neptune-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for kedro_neptune-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d8330f047f995b4d7fc6f778af56f17453801d9769f617d9189e701a1e07a8e1
MD5 b6191da2c3e3f9ab0fbba87ec1913f10
BLAKE2b-256 89e938aa25d5839314ea4bd4bc5fb91b6863474a4d0ac1966332829ee8d18d21

See more details on using hashes here.

Supported by

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