Neptune.ai Flashcards

๐Ÿงญ Neptune.ai Flashcards

Track, Visualize, and Organize ML Experiments at Scale

๐Ÿ” What is Neptune.ai?

Neptune is a metadata store for MLOps. It logs, stores, and visualizes ML experiments and models.

๐Ÿ“ฆ Installation

Install with pip install neptune or neptune-client. Requires a project API token.

๐Ÿ” API Key

Authenticate using an API token and workspace/project name via environment variables or config files.

๐Ÿงช Init Run

Use neptune.init_run() to start a new experiment run and log metadata.

๐Ÿ“ˆ Logging Metrics

Log metrics using run["accuracy"] = 0.92 or run["loss"].log(loss_value).

๐Ÿ“‹ Logging Parameters

Pass a dictionary of parameters like run["params"] = {"lr": 0.01, "batch": 64}.

๐Ÿ“‚ Model Registry

Use Neptune as a lightweight model registry to store and compare production-ready models.

๐Ÿงฎ Tracking Artifacts

Upload files with run["model"].upload("model.pkl") to save artifacts like weights or logs.

๐ŸŽฏ Projects & Tags

Organize runs using project structure and tags for filtering, comparison, and traceability.

๐Ÿ”„ Autologging

Supports autologging with Keras, XGBoost, LightGBM, CatBoost, PyTorch Lightning, and more.

๐Ÿ“Š Web UI

Use the Neptune dashboard to explore experiments, view plots, track lineage, and compare runs.

๐Ÿ› ๏ธ Use Cases

Ideal for ML teams doing reproducible research, MLOps, model debugging, and collaboration.