跳到正文
cccskills
免费在 GitHub 公开

datarobot-feature-engineering

Guidance for feature engineering, feature discovery, feature importance analysis, and understanding DataRobot's automated feature engineering capabilities. Use when working with feature engineering, feature discovery, or analyzing feature importance in DataRobot.

中文简介正在准备中。当前显示原文说明。

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md9.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

DataRobot Feature Engineering Skill

This skill provides guidance for working with features in DataRobot, including understanding automated feature engineering, analyzing feature importance, and optimizing feature sets.

Quick Start

Most common use case: Analyze feature importance for a model

  1. Get feature importance: model = dr.Model.get(project_id, model_id), then model.get_or_request_feature_impact() to get importance scores
  2. Analyze top features: Sort by importance and identify key drivers
  3. Export feature list: dr.Project.get(project_id).get_features(), then iterate f.name, f.feature_type, f.importance to document features

Example: "Show me the top 10 most important features for model xyz123"

When to use this skill

Use this skill when you need to:

  • Understand what features DataRobot creates automatically
  • Analyze feature importance for models
  • Discover which features drive predictions
  • Optimize feature sets for better performance
  • Understand feature types and transformations
  • Export feature lists and definitions

Key capabilities

1. Feature Discovery

  • Understand automated feature engineering in DataRobot
  • Review derived features and transformations
  • Identify feature types (numeric, categorical, text, date)
  • Explore feature relationships and interactions

2. Feature Importance Analysis

  • Get feature importance scores for models
  • Understand which features drive predictions
  • Compare feature importance across models
  • Identify redundant or low-value features

Note: Feature Impact scores are unsigned magnitudes - they say how much a feature matters, not which direction it pushes predictions. For direction, use partial dependence via model.get_or_request_feature_effect(source) — Pattern 3 below shows how. Do not state direction in a report without it.

3. Feature Optimization

  • Select important features for model performance
  • Remove low-importance features to reduce complexity
  • Understand feature impact on predictions
  • Optimize feature sets for deployment

4. Feature Documentation

  • Export feature lists and definitions
  • Document feature transformations
  • Understand feature derivation logic
  • Share feature information with stakeholders

Workflow examples

Example 1: Analyze feature importance

User request: "Show me the top 10 most important features for model xyz123 and explain what they mean."

Agent workflow:

  1. Get feature importance scores for the model
  2. Sort features by importance (descending)
  3. Get top 10 features with their scores
  4. Retrieve feature metadata and descriptions
  5. Explain what each feature represents and why it's important
  6. Provide insights on feature relationships

Example 2: Optimize feature set for deployment

User request: "Create a simplified feature set for deployment abc123, keeping only features with importance > 0.1."

Agent workflow:

  1. Get feature importance for the deployed model
  2. Filter features by importance threshold (> 0.1)
  3. Verify filtered features are sufficient for predictions
  4. Document the optimized feature set
  5. Update deployment configuration if needed

Using DataRobot SDK

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

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

Key SDK Operations

Use these DataRobot SDK methods for feature analysis:

Feature Information:

  • model.get_features_used() - List feature names used by a model (bare strings, includes the target)
  • model.get_or_request_feature_impact() - Get feature importance scores (computes them first if needed)
  • project.get_features() - List features in a project

Feature Analysis:

  • feature.name - Feature name
  • feature.feature_type - Feature type (Numeric, Categorical, etc.)
  • feature.importance - Feature importance score

See the Common Patterns section below for complete examples.

Best practices

  1. Review automated features: DataRobot creates many derived features automatically - review them
  2. Focus on important features: Pay attention to high-importance features for insights
  3. Understand feature types: Different feature types require different handling
  4. Feature documentation: Document important features for stakeholders
  5. Feature selection: Consider removing very low-importance features for simplicity
  6. Feature stability: Consider feature stability over time, not just importance

Common patterns

Pattern 1: Feature importance analysis

import datarobot as dr

# Initialize client
dr.Client()

# Get model and feature importance (Model.get requires both project and model ids)
model = dr.Model.get(project_id, model_id)
feature_impact = model.get_or_request_feature_impact()

# Sort by importance
sorted_features = sorted(
    feature_impact, key=lambda x: x.get("impactNormalized", 0), reverse=True
)

# Get top 10 features
top_features = sorted_features[:10]
for feature in top_features:
    print(f"{feature['featureName']}: {feature.get('impactNormalized', 0):.3f}")

Pattern 2: Feature filtering

import datarobot as dr

# Get model and feature importance (Model.get requires both project and model ids)
model = dr.Model.get(project_id, model_id)
feature_impact = model.get_or_request_feature_impact()

# Filter by importance threshold (> 0.1)
important_features = [f for f in feature_impact if f.get("impactNormalized", 0) > 0.1]

print(f"Found {len(important_features)} features with importance > 0.1")

Pattern 3: Feature effects (direction of impact)

Feature Impact never tells you which way a feature pushes predictions. When a report describes direction ("higher X increases churn"), compute partial dependence first:

import datarobot as dr

model = dr.Model.get(project_id, model_id)
sources = model.get_feature_effect_metadata().sources  # e.g. ["training", "validation"]
fe = model.get_or_request_feature_effect(source=sources[0])  # source is required

for eff in fe.feature_effects[:5]:
    # partial_dependence["data"] is [{"label": <feature value>, "dependence": <prediction>}];
    # direction is how dependence changes across labels — there is no single signed field.
    points = eff["partial_dependence"]["data"]
    print(eff["feature_name"], [(p["label"], p["dependence"]) for p in points[:3]])

Feature types in DataRobot

Numeric Features

  • Continuous numeric values
  • Automatically scaled and normalized
  • Can be used in mathematical operations

Categorical Features

  • Discrete categories or labels
  • Automatically encoded (one-hot, target encoding)
  • Important for many model types

Text Features

  • Text data (descriptions, comments)
  • Automatically processed with NLP techniques
  • Creates multiple text-derived features

Date/Time Features

  • Temporal data
  • Automatically creates time-based features
  • Important for time series models

Understanding feature importance

Feature Impact rows report impactUnnormalized (how much worse the model's error metric gets when the feature is shuffled - not a percentage or share of predictive signal) and impactNormalized (the same value scaled so the largest is 1.0). The thresholds below apply to the normalized score.

Feature importance scores indicate:

  • High importance (> 0.1): Feature significantly impacts predictions
  • Medium importance (0.05-0.1): Feature contributes to predictions
  • Low importance (< 0.05): Feature has minimal impact

Note: Importance thresholds vary by model type and problem domain.

Output rule: Feature Impact is magnitude only, never direction. A report that has not called model.get_or_request_feature_effect(source=...) (Pattern 3) must not claim direction — write "tenure_months is the 4th most impactful feature", not "longer tenure reduces churn". Impact scores are also not shares of predictive signal and cannot be summed into proportions — never write "accounts for 65% of the signal" or "these features carry the majority of the model's predictive power", with or without a number.

Error handling

Common errors and solutions:

  • Feature not found: Verify feature name and model compatibility
  • ClientError (404) from get_feature_impact: Feature Impact was never computed - use model.get_or_request_feature_impact() instead
  • Importance unavailable: Some model types don't provide importance scores
  • Feature access errors: Check project and model permissions

SDK Setup

Install DataRobot SDK

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

Initialize Client

import datarobot as dr

dr.Client()

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 的全部技能

报告此技能的问题