Przejdź do treści
Biblioteka skilli
Dane i analityka · Budowanie i kod

feature-engineering

/feature-engineering

Tworzy, wyodrębnia i wybiera cechy wejściowe modelu, od PCA i embeddingów po kodowanie dat, opóźnienia i selekcję cech.

Repozytorium
data-mining-ml ↗
Licencja
MIT
Ostatnia zmiana repozytorium
31.10.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 31.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Tworzy, wyodrębnia i wybiera cechy wejściowe modelu, od PCA i embeddingów po kodowanie dat, opóźnienia i selekcję cech.

Oryginalny opis (EN)

Feature Engineering. Create, extract and select model inputs - feature extraction (PCA, SVD, TF-IDF, embeddings, signal features), feature engineering (date parts, cyclical encoding, lags, rolling windows, ratios, interactions, binning, target encoding, frequency encoding, geospatial), feature selection (mutual information, RFE, L1, stability selection), feature dictionary and ablation. Use for feature creation, feature construction, encoding categoricals, dimensionality reduction for modeling, or improving a machine learning model's inputs.

Jak działa

  1. Two different ideas
  2. Rules
  3. Selection
  4. Ablation
  5. Output
Sekcje z nagłówków SKILL.md, w oryginale · 40 linii, 321 słów
Podgląd SKILL.md
---
name: feature-engineering
description: Feature Engineering. Create, extract and select model inputs - feature extraction (PCA, SVD, TF-IDF, embeddings, signal features), feature engineering (date parts, cyclical encoding, lags, rolling windows, ratios, interactions, binning, target encoding, frequency encoding, geospatial), feature selection (mutual information, RFE, L1, stability selection), feature dictionary and ablation. Use for feature creation, feature construction, encoding categoricals, dimensionality reduction for modeling, or improving a machine learning model's inputs.
---

# Feature Engineering

## Two different ideas

- **Feature extraction** compresses raw or high-dimensional data into a compact representation (PCA, truncated SVD, NMF, TF-IDF, pretrained embeddings, FFT and rolling statistics). Always state what information is lost and how you inspected it: explained variance, reconstruction error, loadings.
- **Feature engineering** builds informative inputs from domain knowledge (ratios, lags, cyclical time, group aggregates, flags). Every feature needs a rationale.

## Rules

1. Each engineered feature has a one-line rationale and passes the leakage question: *would this value exist at prediction time?*
2. Features are computed inside the pipeline (`ColumnTransformer`, `FunctionTransformer` with a named importable function, or a custom transformer in `src/<package>/transformers.py`) so training and serving share code.
3. Anything that learns from data (encoders, binning edges, selectors, PCA, target encoding) is fitted on training folds only.
4. Lags and rolling windows use only past data: `shift(k)` with k above zero, trailing windows, grouped by entity, computed per snapshot.
5. Target encoding is out-of-fold: `sklearn.preprocessing.TargetEncoder` (cross-fitted in `fit_transform`) inside the pipeline.
6. Record a feature dictionary: name, source, transform, type, rationale, availability time. `mlkit.features.feature_dictionary()` writes it.

## Selection

| Family | Methods | Use when |
|---|---|---|
| Filter | variance threshold, mutual information, chi-squared, ANOVA F | Many features, quick screen |
| Wrapper | RFE, sequential selection | Moderate p, model-specific |
| Embedded | L1, elastic net, tree importance | Selection as part of fitting |
| Stability | Selection frequency across bootstrap resamples | Small n, need trustworthy sets |

Selection lives inside the pipeline and is evaluated with cross-validation. Remove leaky and near-duplicate features first.

## Ablation

Report the CV metric with and without each feature group (raw, ratios, lags, encodings) with fold spread. Keep groups whose gain exceeds the fold-to-fold noise.

## Output

- Pipeline code in `src/<package>/features.py`, imported by the notebook and the API.
- `artifacts/feature_dictionary.csv`.
- Ablation table under a findings heading.

Recipes with code: `references/feature-recipes.md`.
Pliki w paczce (2)
  • SKILL.md 3 KB
  • references/feature-recipes.md 4 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · Harrypatria/data-mining-ml90MIT
angshenting/ds-spdd100MIT
SSameer20/data-analyst-toolkit100MIT
qa-aman/claude-skills100MIT
skforecast/skforecast-ai100Apache-2.0
puckapi/claude-sports-analytics100MIT
param087/agent-ml-skills100MIT
Amey-Thakur/AI-SKILLS90MIT

Migawka bazy z 13.11.2026 · wersja paczki c83c1fd3b83d (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90ml-feature-engineering
    Przygotowuje cechy do modeli ML: kodowanie kategorii, skalowanie, cechy dat i tekstu, selekcję cech oraz featuretools i tsfresh.
  • 100engineering-features-for-machine-learning
    Tworzy, wybiera i przekształca cechy dla modeli uczenia maszynowego, w tym skalowanie, kodowanie i analizę ważności cech.
  • 100engineering-features-for-machine-learning
    Tworzy, wybiera i przekształca cechy dla modeli uczenia maszynowego, w tym skalowanie, kodowanie i analizę ważności cech.
  • 95ml4t-feature-selection
    Wybiera informatywne cechy przez ranking IC, informację wzajemną lub RFE, zawsze w obrębie foldów walidacji krzyżowej, przy redukcji wymiarowości przed treningiem.
  • 90dimensionality-reduction
    Redukuje liczbę cech danych metodami PCA, t-SNE lub UMAP, do wizualizacji albo inżynierii cech.
  • 100pca-dimensionality-reduction
    Redukuje wymiarowość tabelarycznych danych liczbowych analizą PCA z parametrami z wiersza poleceń, automatycznym wyborem cech i eksportem wyników do CSV lub TXT.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.