← 返回
未分类 中文

MLOps Observability

Full stack observability - reproducibility, lineage, monitoring, alerting
全栈可观测性 - 可重复性、溯源、监控、告警
guohongbin-git guohongbin-git 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 161
下载
💾 0
安装
1
版本
#latest#mlops#monitoring

概述

MLOps Observability 👁️

Glass box system - reproducible, traceable, monitored.

Features

1. MLflow Tracking 📊

Complete tracking setup:

cp references/mlflow-tracking.py ../your-project/src/tracking.py

Tracks:

  • Config (params)
  • Metrics (accuracy, loss)
  • Models (sklearn/pytorch)
  • Datasets (lineage)
  • Git commit (reproducibility)

2. Drift Detection 📉

Using Evidently:

from evidently import Report
from evidently.metrics import DataDriftTable

report = Report(metrics=[DataDriftTable()])
report.run(reference_data=train, current_data=prod)

3. Explainability (SHAP) 🔍

import shap

explainer = shap.TreeExplainer(model)
shap_values = explainer.shap_values(X)
shap.summary_plot(shap_values, X)

Quick Start

# Copy tracking code
cp references/mlflow-tracking.py ./src/

# Add to training script:
# from tracking import setup_tracking, log_training_run

Reproducibility

# Set all seeds
import random, numpy as np, torch
random.seed(42)
np.random.seed(42)
torch.manual_seed(42)

# Track git commit
import git
commit = git.Repo().head.commit.hexsha
mlflow.log_param("git_commit", commit)

Monitoring Checklist

  • [ ] Random seeds fixed
  • [ ] MLflow tracking enabled
  • [ ] System metrics logged
  • [ ] Drift detection setup
  • [ ] SHAP explanations saved
  • [ ] Alerts configured

Alerting

  • Local: plyer notifications
  • Production: PagerDuty (critical) / Slack (warnings)

Author

Converted from MLOps Coding Course

Changelog

v1.0.0 (2026-02-18)

  • Initial OpenClaw conversion
  • Added MLflow tracking code

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-12 06:10 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomas-security
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装后可防止您和您的用户受到提示注入、数据泄露及恶意行为的侵害。
★ 116 📥 30,976
it-ops-security

Free Ride - Unlimited free AI

shaivpidadi
管理OpenClaw的OpenRouter免费AI模型,自动按质量排名模型,配置速率限制备用方案,并更新opencla...
★ 471 📥 78,257
it-ops-security

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 90 📥 31,021