Datarobot Feature Engineering

作者 datarobot-oss44a57d315afd无许可证29 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

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.

仅含说明Data & Analytics
AI 生成的概览

指导在 DataRobot 中进行特征工程、特征发现和特征重要性分析,使用其 Python SDK。

功能
提供在 DataRobot 中处理特征的指导,涵盖自动化特征工程、特征发现、特征重要性评分、特征优化和特征文档化。它说明 model.get_features() 和 model.get_feature_impact() 等 SDK 调用,以及排序、筛选和导出特征列表的模式。它还解释 DataRobot 的特征类型以及如何解读重要性阈值。
适用场景
适用于分析哪些特征驱动 DataRobot 模型的预测、比较不同模型的特征重要性,或为部署精简特征集。也适合记录或导出特征列表与定义的需求。
运行要求
需要 DataRobot Python SDK(pip install datarobot)、配置好有效凭据的 DataRobot 客户端,以及对 DataRobot 的网络访问。不包含脚本,仅为指导说明。

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: get_feature_importance(model_id) to get importance scores
  2. Analyze top features: Sort by importance and identify key drivers
  3. Export feature list: export_feature_list(project_id) 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

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:

bash
pip install datarobot

Key SDK Operations

Use these DataRobot SDK methods for feature analysis:

Feature Information:

  • model.get_features() - List all features in a model
  • model.get_feature_impact() - Get feature importance scores
  • 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

python
import datarobot as dr
# Initialize clientdr.Client()
# Get model and feature importancemodel = dr.Model.get("xyz123")feature_impact = model.get_feature_impact()
# Sort by importancesorted_features = sorted(    feature_impact, key=lambda x: x.get("impactNormalized", 0), reverse=True)
# Get top 10 featurestop_features = sorted_features[:10]for feature in top_features:    print(f"{feature['featureName']}: {feature.get('impactNormalized', 0):.3f}")

Pattern 2: Feature filtering

python
import datarobot as dr
# Get model and feature importancemodel = dr.Model.get("xyz123")feature_impact = model.get_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")

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 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.

Error handling

Common errors and solutions:

  • Feature not found: Verify feature name and model compatibility
  • Importance unavailable: Some model types don't provide importance scores
  • Feature access errors: Check project and model permissions

SDK Setup

Install DataRobot SDK

bash
pip install datarobot

Initialize Client

python
import datarobot as dr
dr.Client()

Resources

来源与署名

来源:datarobot-oss/datarobot-agent-skills位于skills/datarobot-feature-engineering提交44a57d3

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架