Agent skill

categorical-encoder

Эксперт categorical encoding. Используй для ML feature engineering, one-hot, target encoding и embeddings.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill categorical-encoder --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 8 KB
Bundled scripts: none
Path: skills/ai-ml/categorical-encoder/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Categorical Encoder Expert Эксперт по кодированию категориальных переменных для машинного обучения. ## Выбор на основе кардинальности | Кардинальность | Рекомендация | |----------------|--------------| | Низкая (<10) | One-hot, Dummy | | Средняя (10-50) | Target, Frequency, Binary | | Высокая (>50) | Hash, Embeddings | | Порядковая | Ordinal | ## One-Hot Encoding ```python from sklearn.preprocessing import OneHotEncoder import pandas as pd # Для pandas df_encoded = pd.get_dummies(df, columns=['category_col'], prefix='cat') # Для sklearn encoder = OneHotEncoder(sparse_output=False, handle_unknown='ignore') X_train_encoded = encoder.fit_transform(X_train[['category_col']]) X_test_encoded = encoder.transform(X_test[['category_col']]) # Получить названия признаков feature_names = encoder.get_feature_names_out(['category_col']) ``` ## Target Encoding с кросс-валидацией ```python from sklearn.model_selection import KFold import numpy as np def target_encode_cv(X, y, column, n_splits=5, alpha=1.0): """ Target кодирование с CV для предотвращения переобучения """ kf = KFold(n_splits=n_splits, shuffle=True, random_state=42) encoded = np.zeros(len(X)) global_mean = y.mean() for train_idx, v

What's inside
Steps it walks through
  1. Выбор на основе кардинальности
  2. One-Hot Encoding
  3. Target Encoding с кросс-валидацией
  4. Binary Encoding
  5. Frequency и Count Encoding
  6. Embeddings для высокой кардинальности
  7. Multiple Encoding Strategy
  8. Production-ready Encoder
  9. Рекомендации для моделей
  10. Предотвращение утечки данных
  11. Валидация
  12. Лучшие практики
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the categorical-encoder skill do?

Эксперт categorical encoding. Используй для ML feature engineering, one-hot, target encoding и embeddings.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill categorical-encoder --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going