本文へ移動
cccskills
無料GitHub で公開

datarobot-model-monitoring

Tools and guidance for monitoring model performance, tracking data drift, managing model health, and detecting prediction anomalies. Use when monitoring deployed models, tracking drift, or investigating prediction anomalies.

日本語の概要は準備中です。原文の説明を表示しています。

実行スコア 未検証

インストール方法を見る

含まれるファイル(1)

  • SKILL.md7.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

DataRobot Model Monitoring Skill

This skill provides comprehensive guidance for monitoring deployed models, tracking performance metrics, detecting data drift, and managing model health.

Quick Start

Most common use case: Check deployment health and data drift

  1. Check service stats: deployment.get_service_stats(...) to review prediction volume/latency
  2. Check drift: deployment.get_feature_drift(...) / deployment.get_target_drift(...)
  3. Compare over time: Use get_service_stats_over_time(...) and drift periods to assess trends

Example: "Check the health of deployment abc123 and report any data drift issues"

When to use this skill

Use this skill when you need to:

  • Monitor model performance in production
  • Track data drift and feature drift
  • Detect prediction anomalies
  • Monitor prediction accuracy over time
  • Set up alerts for model degradation
  • Analyze model health metrics
  • Compare production performance to training performance

Key capabilities

1. Performance Monitoring

  • Track prediction accuracy and metrics over time
  • Compare production metrics to training metrics
  • Monitor prediction volume and latency
  • Identify performance degradation trends

2. Data Drift Detection

  • Detect changes in feature distributions
  • Identify feature drift (statistical changes)
  • Monitor target drift (if actuals available)
  • Alert on significant drift events

3. Prediction Monitoring

  • Monitor prediction distributions
  • Detect prediction anomalies
  • Track prediction confidence scores
  • Identify unusual prediction patterns

4. Health Management

  • Assess overall model health
  • Generate monitoring reports
  • Set up automated alerts
  • Manage model retraining triggers

Workflow examples

Example 1: Check model health and drift

User request: "Check the health of deployment abc123 and report any data drift issues."

Agent workflow:

  1. Get deployment monitoring status
  2. Retrieve recent performance metrics
  3. Check for data drift in key features
  4. Compare current metrics to baseline (training)
  5. Identify any significant drift or degradation
  6. Report findings with recommendations

Example 2: Set up drift monitoring alerts

User request: "Set up alerts for deployment xyz789 to notify when feature drift exceeds 0.2."

Agent workflow:

  1. Get deployment configuration
  2. Configure drift threshold (0.2)
  3. Set up alert notifications
  4. Specify which features to monitor
  5. Test alert configuration
  6. Confirm monitoring is active

Using DataRobot SDK

This skill guides you to use the DataRobot Python SDK directly. Install the SDK if needed:

pip install datarobot

Key SDK Operations

Use these DataRobot SDK and MLOps API methods for monitoring:

Deployment Monitoring:

  • deployment.get_service_stats(...) - Get service statistics (latency, volume, etc.)
  • deployment.get_feature_drift(...) - Get feature drift metrics (returns FeatureDrift objects)
  • deployment.get_target_drift(...) - Get target drift metrics (returns TargetDrift)
  • deployment.get_prediction_results(...) - Retrieve recorded prediction results (if enabled)

Model Performance:

  • model.metrics - Model performance metrics (dict of {metric: {partition: score}})
  • model.get_roc_curve() - Get ROC curve for comparison

Note: Some monitoring features may require DataRobot MLOps API. See the Common Patterns section below for examples.

Best practices

  1. Regular monitoring: Check model health regularly, not just when issues arise
  2. Baseline comparison: Always compare production metrics to training baseline
  3. Drift thresholds: Set appropriate drift thresholds based on your domain
  4. Key features: Focus monitoring on high-importance features
  5. Automated alerts: Set up alerts for critical issues
  6. Historical analysis: Track trends over time, not just point-in-time metrics

Common patterns

Pattern 1: Health check

import datarobot as dr

# Initialize client
dr.Client()

# Get deployment
deployment = dr.Deployment.get("abc123")

# Get service stats (requires MLOps monitoring to be enabled)
# ServiceStats exposes values via the .metrics dict, not as attributes.
stats = deployment.get_service_stats()
print(f"Prediction count: {stats.metrics['totalPredictions']}")
print(f"Mean response time (ms): {stats.metrics['responseTime']}")

# Get recorded prediction results (if available / enabled)
try:
    recent = deployment.get_prediction_results(limit=10)
    print(f"Recent prediction results: {len(recent)}")
except Exception as e:
    print(f"Prediction results not available: {e}")

Pattern 2: Drift detection

import datarobot as dr

# Get deployment
deployment = dr.Deployment.get("abc123")

# Get feature drift (requires MLOps monitoring)
try:
    drifts = deployment.get_feature_drift()
    high = [d for d in drifts if (d.drift_score or 0) > 0.2]
    print(f"Features with drift_score > 0.2: {len(high)}")
    for d in high[:10]:
        print(f"{d.name}: {d.drift_score}")
except Exception as e:
    print(f"Feature drift requires MLOps monitoring: {e}")

Monitoring metrics

Performance Metrics

  • Accuracy: Prediction accuracy (classification)
  • RMSE/MAE: Prediction error (regression)
  • AUC: Model discrimination (classification)
  • Prediction volume: Number of predictions made

Drift Metrics

  • Feature drift: Statistical changes in feature distributions
  • Target drift: Changes in target distribution (if available)
  • Prediction drift: Changes in prediction distributions
  • Drift score: Overall drift severity (0-1 scale)

Alert thresholds

Recommended thresholds:

  • High drift: > 0.3 (significant changes, investigate immediately)
  • Medium drift: 0.15-0.3 (moderate changes, monitor closely)
  • Low drift: < 0.15 (minor changes, normal variation)

Adjust thresholds based on your domain and use case sensitivity.

Model health status

  • Healthy: Performance within expected range, minimal drift
  • Degrading: Performance declining, some drift detected
  • Unhealthy: Significant performance issues or high drift
  • Unknown: Insufficient data for assessment

Error handling

Common errors and solutions:

  • Insufficient data: Need minimum prediction volume for monitoring
  • Baseline unavailable: Ensure training baseline is available
  • Access issues: Verify deployment permissions and access

SDK Setup

Install DataRobot SDK

pip install datarobot

Initialize Client

import datarobot as dr

dr.Client()

Note: Some monitoring features require DataRobot MLOps API access. Check your DataRobot plan for MLOps availability.

Resources

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Use when the user wants to design, build, code, simulate, or deploy an AI agent (not a predictive model) to DataRobot; mentions agent_spec.yaml, dr-assist, datarobot-agent-assist, dress rehearsal, swarm simulation, or the DataRobot agent template; wants to scaffold a LangGraph, CrewAI, LlamaIndex, NAT, or Base agent targeting DataRobot; wants to add an MCP server, backend API, or React frontend to a DataRobot agent application; or uses the DataRobot CLI (dr) to build or deploy an agentic custom application; or wants to harden, stress-test, or battle-test an agent. Covers the full workflow: agent design, agent_spec.yaml authoring, dress-rehearsal simulation via the DataRobot LLM Gateway, adversarial swarm simulation, template-based coding, and deployment.

日本語の概要は準備中です。原文の説明を表示しています。

datarobot-oss/datarobot-agent-skills322026年10月23日 更新

Use when the user wants to design, build, code, or deploy an AI agent on DataRobot; mentions agent_spec.yaml, dress rehearsal, the DataRobot agent template, LangGraph, CrewAI, LlamaIndex, NAT, Base agents, MCP servers, backend APIs, custom frontends, or the DataRobot CLI.

日本語の概要は準備中です。原文の説明を表示しています。

datarobot-oss/datarobot-agent-skills322026年10月23日 更新

Use when an agent assist user wants to deploy their agent, put it on DataRobot, get a link to it, or share it with others, the agent can run as a single container, and the project has no `infra/Pulumi.yaml`. Not for agents built from the agent template, which deploy with Pulumi through datarobot-agent-assist. Users usually just say "deploy" or "deploy to DataRobot" and won't mention containers, workloads or the CLI.

日本語の概要は準備中です。原文の説明を表示しています。

datarobot-oss/datarobot-agent-skills322026年10月23日 更新

Use when the user wants to adversarially test, evaluate, or harden an implemented AI agent before deployment; mentions swarm simulation, attack testing, persistence testing, evaluation criteria, or eval_report.md.

日本語の概要は準備中です。原文の説明を表示しています。

datarobot-oss/datarobot-agent-skills322026年10月23日 更新

Use when the user wants to configure LLM integration for a DataRobot agent application. This skill helps to change LLM model, switch between the LLM integrations the project supports (LLM Gateway, a DataRobot-deployed LLM, an external provider, an LLM Blueprint, and any others its config declares), or set up provider credentials. The skill reads the project's .datarobot/cli/llm.yml for the real options, interviews the user, then runs sync_llm_env.py with the chosen values as CLI args to merge into .env.

日本語の概要は準備中です。原文の説明を表示しています。

datarobot-oss/datarobot-agent-skills322026年10月23日 更新

Guidance for setting up CI/CD pipelines for DataRobot application templates using GitLab, GitHub Actions, and Pulumi for infrastructure as code. Use when setting up CI/CD pipelines, configuring deployments, or managing infrastructure for DataRobot application templates.

日本語の概要は準備中です。原文の説明を表示しています。

datarobot-oss/datarobot-agent-skills322026年10月23日 更新

datarobot-oss のスキルをすべて見る

このスキルの問題を報告する