界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

feature-workflows

feature-workflows

【效率与协作】Use mlxtend feature selection, feature extraction, preprocessing, and transaction encoding workflows.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: feature-workflows description: "Use mlxtend feature selection, feature extraction, preprocessing, and transaction encoding workflows." disable-model-invocation: true metadata: disco-role: operating license: NOASSERTION

Feature workflows

Use this sub-skill when the task is to prepare model inputs with mlxtend feature selectors, extraction transformers, transaction one-hot encoders, or preprocessing helpers.

Start here

Owned APIs

  • Feature selection: SequentialFeatureSelector, ExhaustiveFeatureSelector, ColumnSelector.
  • Feature extraction: PrincipalComponentAnalysis, LinearDiscriminantAnalysis, RBFKernelPCA.
  • Preprocessing: TransactionEncoder, DenseTransformer, MeanCenterer, CopyTransformer, one_hot, minmax_scaling, standardize, shuffle_arrays_unison.

Boundaries

Operating rules

  1. Treat selectors as sklearn-style transformers: fit on X, y, inspect selected-feature attributes, then call transform or fit_transform to reduce X.
  2. Prefer pandas DataFrame inputs when feature names, string fixed_features, or string feature_groups matter; use ndarray integer indices otherwise.
  3. Keep feature_groups exhaustive and non-overlapping. If fixed_features intersects a group, include all members of that group in fixed_features.
  4. Use ExhaustiveFeatureSelector only for small feature/group counts; it evaluates all combinations between min_features and max_features.
  5. Keep sparse data sparse until an API requires dense arrays; use DenseTransformer deliberately because densification can multiply memory use.
  6. Keep transaction data as list[list[item]] until TransactionEncoder; preserve encoder.columns_ when building pandas one-hot DataFrames.

Safe smoke

From this sub-skill directory or any environment with mlxtend installed:

python scripts/feature_workflows_smoke.py --task all

The smoke script uses tiny in-memory sklearn/numpy/pandas examples, writes no files, does not download data, and does not depend on a source checkout.

我的收藏