Datarobot feature engineering

From Kilo-Org/kilo-marketplace · View interactive version

Datarobot feature engineering is an AI agent skill from the GitHub repository Kilo-Org/kilo-marketplace. 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.

How to use this skill

Skill file

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:

Key capabilities

1. Feature Discovery

2. Feature Importance Analysis

3. Feature Optimization

4. Feature Documentation

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:

pip install datarobot

Key SDK Operations

Use these DataRobot SDK methods for feature analysis:

Feature Information:

Feature Analysis:

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
import os

# Initialize client
client = dr.Client(
    token=os.getenv("DATAROBOT_API_TOKEN"),
    endpoint=os.getenv("DATAROBOT_ENDPOINT")
)

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

Categorical Features

Text Features

Date/Time Features

Understanding feature importance

Feature importance scores indicate:

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

Error handling

Common errors and solutions:

SDK Setup

Install DataRobot SDK

pip install datarobot

Initialize Client

import datarobot as dr
import os

client = dr.Client(
    token=os.getenv("DATAROBOT_API_TOKEN"),
    endpoint=os.getenv("DATAROBOT_ENDPOINT", "https://app.datarobot.com")
)

Resources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.