Логотип Datarobot Predictions

Datarobot Predictions

Організація
datarobot-oss
datarobot-predictions

Інструменти й рекомендації для отримання прогнозів за допомогою розгортань DataRobot: прогнози в реальному часі, пакетне оцінювання, створення наборів даних для прогнозування та пояснення прогнозів (SHAP/XEMP). Використовуйте цей навик для отримання прогнозів, запуску пакетного оцінювання, створення наборів даних для прогнозування або пояснення окремих прогнозів розгорнутої моделі.

Огляд

Видавецьdatarobot-oss
Репозиторійdatarobot-agent-skills
Назва навичкиdatarobot-predictions
Зірки
33
Форки
27
Файли в пакеті
4
ЛіцензіяApache-2.0
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 4

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: datarobot-oss. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Datarobot Predictions у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/datarobot-oss/datarobot-agent-skills/tree/main/skills/datarobot-predictions
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/datarobot-oss/datarobot-agent-skills.git /tmp/datarobot-agent-skills
mkdir -p .claude/skills
cp -r /tmp/datarobot-agent-skills/skills/datarobot-predictions .claude/skills/datarobot-predictions
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Datarobot Predictions в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Datarobot Predictions, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Datarobot Predictions не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

DataRobot Predictions Skill

This skill provides comprehensive guidance for working with DataRobot predictions, including real-time predictions, batch scoring, and generating prediction datasets.

Quick Start

Most common use case: Generate predictions for a deployment

  1. Get deployment features: get_deployment_features(deployment_id) to understand required columns
  2. Generate template: generate_prediction_data_template(deployment_id, n_rows) to create CSV structure
  3. Make predictions: Use deployment.predict_batch(...) (works for both single-row “real-time” and batch scoring)

Example: "Generate a prediction dataset template for deployment abc123 with 10 rows"

To also explain predictions: pass --max-explanations N to make_prediction.py (or the max_explanations=N kwarg in code). See Prediction Explanations below.

When to use this skill

Use this skill when you need to:

  • Make predictions from deployed DataRobot models
  • Explain individual predictions from a deployment (SHAP or XEMP, per-row)
  • Generate prediction dataset templates
  • Validate prediction data before scoring
  • Understand deployment feature requirements
  • Perform batch predictions on large datasets
  • Get sample training data to understand expected formats

For post-hoc explanations against a training project / leaderboard model (not a deployment), use the datarobot-model-explainability skill instead. This skill covers deployment-time explanations returned alongside scoring.

Key capabilities

1. Understanding Deployment Requirements

Before making predictions, you need to understand what features a deployment requires:

  • Feature names and types: Know which columns are needed (numeric, categorical, text, date)
  • Feature importance: Understand which features matter most
  • Target information: Know what you're predicting
  • Time series configuration: If applicable, understand datetime columns and series IDs

2. Generating Prediction Datasets

Create properly formatted prediction datasets:

  • Generate CSV templates with all required columns
  • Include sample values appropriate for each feature type
  • Add metadata comments explaining the model structure
  • Ensure correct column ordering

3. Validating Prediction Data

Validate datasets before making predictions:

  • Check for missing required features
  • Verify data types match expected types
  • Identify missing low-importance features (warnings)
  • Note extra columns that will be ignored

4. Making Predictions

Execute predictions using various methods:

  • Real-time predictions: Fast, synchronous predictions for individual records
  • Batch predictions: Process large datasets efficiently
  • Time series predictions: Handle forecasting scenarios with proper datetime handling

Workflow examples

Example 1: Generate prediction dataset for a new scenario

User request: "I want to predict sales for next week for store_A with temperatures of 75°F each day and no promotions."

Agent workflow:

  1. Get deployment features to understand required columns
  2. Generate a prediction data template with 7 rows (one week)
  3. Fill in the template with user's specific values:
    • Set temperature = 75 for all rows
    • Set promotion = 0 for all rows
    • Set store_id = "store_A" for all rows
    • Set dates for next 7 days
  4. Validate the data to ensure it's correct
  5. Make predictions using the validated dataset

Example 2: Batch scoring a CSV file

User request: "Score all records in my prediction_data.csv file using deployment abc123."

Agent workflow:

  1. Validate the CSV file structure matches deployment requirements
  2. Upload the file or provide file path
  3. Submit batch prediction job
  4. Monitor job status
  5. Retrieve and return prediction results

Using DataRobot SDK

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

bash
uv pip install datarobot datarobot-predict || python -m pip install datarobot datarobot-predict

Key SDK Operations

Use these DataRobot SDK methods to work with predictions:

Deployment Information:

  • dr.Deployment.get(deployment_id) - Get deployment details
  • deployment.get_features() - Get required features. Returns a list of plain dicts with keys name, feature_type, importance, date_format, known_in_advance — use dict access (f["name"]). importance is a model-independent feature/target association score — it can be negative and is NOT the model's Feature Impact, so don't use it to rank model-relevant features.

Predictions:

  • deployment.predict_batch(source) - Convenience batch prediction API (CSV path, file object, or pandas DataFrame)
  • dr.BatchPredictionJob.score(deployment=deployment, ...) - Advanced batch prediction control
  • job.get_result_when_complete() - Wait for batch scoring to finish and download results

Data Management:

  • dr.Dataset.create_from_file(file_path) - Upload dataset
  • dr.Dataset.get(dataset_id) - Get dataset info

See the Common Patterns section below for complete examples.

Prediction Explanations

Deployments can return per-row explanations (top feature contributions) alongside predictions. Two algorithms are available depending on how the deployment was configured:

  • SHAP (shap): SHapley Additive exPlanations. Available on tree-based models when SHAP was enabled at deployment time. Returns signed contributions in the model's score space.
  • XEMP (xemp): DataRobot's eXplainable AI for the eXact Model Prediction. Default when SHAP is not enabled. Returns top-N strongest features with a qualitative strength (+++, --, etc.).

If you omit explanation_algorithm, the deployment's default is used.

How to request explanations

Pass max_explanations=N (and any optional filters) when calling datarobot_predict.deployment.predict:

python
import datarobot as dr
import pandas as pd
from datarobot_predict.deployment import predict as dr_predict

dr.Client()
deployment = dr.Deployment.get("abc123")

result = dr_predict(
    deployment=deployment,
    data_frame=pd.DataFrame([{"feature1": 10, "feature2": 20}]),
    max_explanations=3,  # top 3 contributors per row
    explanation_algorithm="shap",  # or "xemp"; omit for deployment default
    # threshold_high=0.8,                # optional: only explain rows scoring > 0.8
    # threshold_low=0.2,                 # optional: only explain rows scoring < 0.2
    # passthrough_columns="all",         # optional: echo input columns through to output
)
print(result.dataframe.to_dict(orient="records"))

The result DataFrame includes columns like EXPLANATION_1_FEATURE_NAME, EXPLANATION_1_ACTUAL_VALUE, EXPLANATION_1_STRENGTH, EXPLANATION_1_QUALITATIVE_STRENGTH for each of the top-N contributors.

Parameter reference

ParameterPurpose
max_explanationsTop-N contributors per row. 0 (default) disables explanations for xemp; with explanation_algorithm="shap", 0 computes all explanations ("all" is also accepted, SHAP only).
max_ngram_explanationsText models only: cap text-segment explanations per row.
threshold_highOnly explain rows with prediction probability above this (0–1).
threshold_lowOnly explain rows with prediction probability below this (0–1).
explanation_algorithm"shap" or "xemp"; omit to use deployment default.
passthrough_columns"all" or set of input column names to echo through to output.

CLI shortcut

bash
python scripts/make_prediction.py abc123 '{"feature1": 10, "feature2": 20}' \
    --max-explanations 3 --explanation-algorithm shap

When to use which threshold

  • threshold_high is useful when only positive (high-risk / fraud / churn-likely) predictions need explaining — saves compute on a large batch.
  • threshold_low is the mirror image for low-probability rows.
  • Setting both restricts explanations to rows outside the [low, high] band.

Common errors

  • "Prediction explanations not enabled": the deployment was created without explanations support. Re-deploy the model with explanations enabled, or use a deployment that has them.
  • max_explanations ignored / no explanation columns in output: confirm you're calling datarobot_predict.deployment.predict(...) and that the deployment has explanations enabled. The deployment.predict_batch() convenience wrapper on the SDK is intended for plain scoring; use datarobot_predict.deployment.predict when you need explanation kwargs.

Helper Scripts

This skill includes executable helper scripts that Claude can run directly:

  • scripts/get_deployment_features.py - Get deployment feature requirements
  • scripts/generate_prediction_data_template.py - Generate CSV template
  • scripts/validate_prediction_data.py - Validate prediction data
  • scripts/make_prediction.py - Make real-time predictions

Usage example:

bash
# Get deployment features
python scripts/get_deployment_features.py abc123

# Generate template
python scripts/generate_prediction_data_template.py abc123 10 template.csv

# Validate data
python scripts/validate_prediction_data.py abc123 prediction_data.csv

# Make prediction
python scripts/make_prediction.py abc123 '{"feature1": 10, "feature2": 20}'

# Make prediction with top-3 SHAP explanations
python scripts/make_prediction.py abc123 '{"feature1": 10, "feature2": 20}' \
    --max-explanations 3 --explanation-algorithm shap

Claude can run these scripts directly or use them as reference when writing code.

Best practices

  1. Always validate first: Validate prediction data before submitting predictions to catch errors early
  2. Use templates: Generate templates to ensure correct structure and avoid missing columns
  3. Check feature types: Ensure numeric features are numbers, categorical features match training values
  4. Handle time series: For time series models, ensure datetime columns and series IDs are properly formatted
  5. Monitor batch jobs: For large batch predictions, check job status and handle errors appropriately

Common patterns

Pattern 1: Get deployment features and make single prediction (optionally with explanations)

python
import datarobot as dr
import pandas as pd
from datarobot_predict.deployment import predict as dr_predict

# Initialize client
dr.Client()

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

prediction_data = {
    "feature1": value1,
    "feature2": value2,
    # ... all required features (excluding target)
}

# Score one row. Add max_explanations=N to get top-N explanations per row.
result = dr_predict(
    deployment=deployment,
    data_frame=pd.DataFrame([prediction_data]),
    max_explanations=3,  # optional; omit to disable (with shap, 0 means ALL explanations)
    explanation_algorithm="shap",  # optional; omit to use deployment default
)
print(result.dataframe.to_dict(orient="records"))

Pattern 2: Generate template and batch predictions

python
import datarobot as dr
import pandas as pd

# Initialize client
dr.Client()

# Get deployment features (list of plain dicts — see Key SDK Operations above)
deployment = dr.Deployment.get("abc123")
features = deployment.get_features()
target_name = deployment.model.get("target_name")  # None for unsupervised/anomaly deployments

# Create template DataFrame
prediction_features = [f for f in features if f["name"] != target_name]
template_df = pd.DataFrame(columns=[f["name"] for f in prediction_features])

# Add sample rows
for i in range(100):
    row = {}
    for feature in prediction_features:
        if feature["feature_type"] == "Numeric":
            row[feature["name"]] = 0.0
        elif feature["feature_type"] == "Categorical":
            row[feature["name"]] = "sample_value"
        else:
            row[feature["name"]] = ""
    template_df = pd.concat([template_df, pd.DataFrame([row])], ignore_index=True)

# Save template
template_df.to_csv("prediction_template.csv", index=False)

# Fill template with actual data (modify CSV as needed)
# ...

# Submit batch prediction. With a localFile output path, score() blocks until
# scoring finishes and writes predictions_output.csv before returning — no
# separate monitor/download step is needed. (It waits up to download_timeout=120s
# for the queue to start returning results, then raises AND cancels the job —
# pass download_timeout=-1 or a larger value for busy queues / large datasets.)
job = dr.BatchPredictionJob.score(
    deployment=deployment,
    intake_settings={"type": "localFile", "file": "prediction_template.csv"},
    output_settings={"type": "localFile", "path": "predictions_output.csv"},
)

# Equivalent one-liner:
# dr.BatchPredictionJob.score_to_file(deployment, intake_path="prediction_template.csv", output_path="predictions_output.csv")

Error handling

Common errors and solutions:

  • Missing required features: Use get_deployment_features to get complete list
  • Wrong data types: Check feature types and convert accordingly
  • Invalid categorical values: Get the real training levels via dr.Feature.get(deployment.model["project_id"], feature_name).get_histogram().plot — each bin's label is a valid level, EXCEPT aggregate pseudo-buckets whose label is wrapped in = (=All Other= when levels were truncated to the bin cap; ==Missing== when the feature had NAs — represent missing as an empty cell, not that string). Custom-model deployments have no project_id; check their training data instead.
  • Time series format errors: Ensure datetime format matches training data

SDK Setup

Install DataRobot SDK

bash
uv pip install datarobot datarobot-predict || python -m pip install datarobot datarobot-predict

Initialize Client

python
import datarobot as dr

# Initialize client with API credentials
dr.Client()

Environment Variables

Set these environment variables or pass them directly:

  • DATAROBOT_API_TOKEN - Your DataRobot API token
  • DATAROBOT_ENDPOINT - Your DataRobot API endpoint, which must include the /api/v2 path (e.g. https://app.datarobot.com/api/v2)

Resources

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Datarobot Predictions?

Інструменти й рекомендації для отримання прогнозів за допомогою розгортань DataRobot: прогнози в реальному часі, пакетне оцінювання, створення наборів даних для прогнозування та пояснення прогнозів (SHAP/XEMP). Використовуйте цей навик для отримання прогнозів, запуску пакетного оцінювання, створення наборів даних для прогнозування або пояснення окремих прогнозів розгорнутої моделі.

Навіщо використовувати Datarobot Predictions у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Datarobot Predictions — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Datarobot Predictions у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/datarobot-oss/datarobot-agent-skills/tree/main/skills/datarobot-predictions. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Datarobot Predictions?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Datarobot Predictions?

Зі скількома забажаєте. У TypingMind ви можете використовувати Datarobot Predictions із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Datarobot Predictions?

Так. На GitHub цю навичку публікує datarobot-oss за ліцензією Apache-2.0. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі
Логотип openclaw

Release Openclaw Mac

openclaw
ОрганізаціяПопулярне

Виконуйте підписування релізів OpenClaw для macOS, нотаризацію, оновлення appcast і просування ресурсів або відновлюйте ці процеси.

82.2K
391K
Інструкції
Відкрити
Логотип openclaw

Release Openclaw Maintainer

openclaw
ОрганізаціяПопулярне

Готуйте, публікуйте, відновлюйте або перевіряйте бета-, стабільні й розширено стабільні релізи OpenClaw, зокрема затверджені зворотні перенесення змін.

82.2K
391K
Файлів: 11
Відкрити
Логотип openclaw

Release Openclaw Plugin Testing

openclaw
ОрганізаціяПопулярне

Плануйте та виконуйте передрелізну перевірку плагінів OpenClaw: вбудованих плагінів, артефактів пакетів, команд життєвого циклу, doctor/fix, перевірки конфігурації після повторного перетворення, запуску шлюзу, сумісності SDK, Docker E2E,…

82.2K
391K
Файлів: 1
Відкрити
Логотип openclaw

Solid

openclaw
ОрганізаціяПопулярне

Write, port, review, or test Solid 2 UI in OpenClaw (Control UI, plugin views, Canvas hosts), including state ownership, Lit interop during the migration, native overlays, testing, performance, and…

82.4K
391.7K
Файлів: 9
Відкрити

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇