Command Palette

Search for a command to run...

Назад к скиллам
скилл № 87821

ml-feature-engineering

Use when the user asks about feature engineering: categorical encoding (one-hot, target), scaling, datetime and lag features, text features, feature…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить ml-feature-engineering в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

ML Feature Engineering

Purpose

Transform raw data into effective ML features through encoding, scaling, extraction, interaction, and selection. Use automated feature engineering for relational and time-series data.

Agent Protocol

Trigger

Exact user phrases: "feature engineering", "featuretools", "tsfresh", "feature selection", "feature extraction", "encoding", "scaling", "one-hot encoding", "target encoding", "feature interaction", "datetime features", "text features", "feature importance", "categorical encoding", "TF-IDF", "count vectorizer".

Input Context

Before activating, verify:

  • Data sources (relational tables, CSV, time-series, text, images)
  • Feature types (numeric, categorical, datetime, text, geospatial)
  • Target variable (regression, classification, time-series forecasting)
  • Dataset size (rows, columns, total memory usage)
  • ML model type (linear models, tree-based, neural networks)
  • Domain knowledge (business rules, known interactions, feature semantics)
  • Infrastructure (Python environment, memory constraints, compute budget)

Output Artifact

Feature engineering pipeline with encoding, scaling, extraction, interaction, and selection as Python.

Response Format

# Feature engineering pipeline
# Encoding and scaling transforms
# Feature selection implementation
# Feature definitions
# Automated FE configuration
# Feature importance ranking

No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.

Completion Criteria

  • Categorical features encoded appropriately (one-hot, target, ordinal)
  • Numerical features scaled (standard, min-max, robust by distribution)
  • Datetime features extracted (components, cyclical encoding, lags)
  • Text features extracted (TF-IDF, count vectorizer, embeddings)
  • Feature interactions generated (polynomial, cross, domain-specific)
  • Feature selection applied (filter, wrapper, embedded method)
  • Automated feature engineering configured (Featuretools, tsfresh)
  • Feature validation (no leakage, cardinality handling, missing values)

Max Response Length

400 lines of code and configuration.

Decision Trees

Encoding Strategy Selection

Categorical feature cardinality
  ├── < 15 unique values → OneHotEncoder (handle_unknown="ignore")
  │   For linear models: drop first category to avoid multicollinearity
  │   For tree models: keep all categories
  ├── 15-100 unique values
  │   ├── Ordered → OrdinalEncoder with explicit mapping
  │   └── Unordered → BinaryEncoder or TargetEncoder with smoothing
  ├── 100-10000 unique values
  │   ├── TargetEncoder (smoothing=10, min_samples_leaf=5)
  │   ├── CatBoostEncoder (ordered target encoding, reduces leakage)
  │   └── LeaveOneOutEncoder (if enough samples per category)
  └── > 10000 unique values
      ├── CountEncoder (frequency as feature)
      ├── Hashing trick (n_components=2^16, signed=True)
      └── Entity embeddings via neural network

Feature Scaling Selection

Numerical feature distribution
  ├── Approximately normal → StandardScaler (zero mean, unit var)
  ├── Uniform distribution → MinMaxScaler (bounded [0,1])
  ├── Heavy outliers or skewed
  │   ├── RobustScaler (median, IQR) — preserves outliers
  │   └── Winsorize then StandardScaler — caps outliers
  ├── Highly skewed (> 1 skew)
  │   ├── PowerTransformer (Yeo-Johnson) — handles negative
  │   ├── QuantileTransformer (normal output) — ranks
  │   └── Log-transform (for strictly positive)
  └── Sparse data → StandardScaler(with_mean=False) or MaxAbsScaler

Feature Selection Method Selection

Data size and characteristic
  ├── Quick initial screening
  │   ├── VarianceThreshold (remove constant/near-constant)
  │   └── Correlation filter (remove >0.95 pairwise)
  ├── < 50K samples, < 500 features
  │   ├── Mutual information (non-linear, captures any relationship)
  │   ├── SelectKBest with f_classif (linear only)
  │   └── RFE with LogisticRegression (wrapper, slow but accurate)
  ├── 50K-500K samples, 500-5000 features
  │   ├── SelectFromModel with Lasso (L1 regularization)
  │   ├── Permutation importance (model-agnostic)
  │   └── LightGBM built-in importance (fast)
  ├── > 500K samples or > 5000 features
  │   ├── L1-regularized linear model (fast feature elimination)
  │   ├── RandomForest feature importance (parallel)
  │   └── Boruta (shadow features, robust but slow)
  └── High cardinality categorical
      └── Target encoding → group rare categories → encode → select

Workflow

Step 1: Categorical Encoding

One-hot encoding: nominal categories with < 50 unique values. Target encoding: high-cardinality categories, use smoothing to prevent overfitting. Ordinal encoding: ordered categories (education level, satisfaction). Binary encoding: high cardinality (hash categories to binary columns). Count encoding: frequency of each category. Leave-one-out enco

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/automated-fe.md
  • references/feature-encoding.md
  • references/feature-engineering-advanced.md
  • references/feature-engineering-fundamentals.md
  • references/text-features.md
  • references/validation-leakage.md

FAQ

Что делает скилл ml-feature-engineering?

Use when the user asks about feature engineering: categorical encoding (one-hot, target), scaling, datetime and lag features, text features, feature selection, featuretools or tsfresh. Produces leakage-safe transformation pipelines and selection results. Not for serving features online (use ml-feature-store) or model training (use ml-classical-ml).

Как установить скилл ml-feature-engineering?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ml-feature-engineering запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ml-feature-engineering с