๐งญ 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.