AGENT SKILL

ml-pipelines

Build Vaex ML feature pipelines, transformers, split/state workflows, sklearn wrappers, KMeans/PCA, and optional estimator integrations.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
ml-pipelines
license
MIT
metadata
{ "disco-role": "operating" }
description
Build Vaex ML feature pipelines, transformers, split/state workflows, sklearn wrappers, KMeans/PCA, and optional estimator integrations.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

ML pipelines

Use this sub-skill when the task is to build reusable Vaex ML feature pipelines: train/test splits, fitted transformers, preprocessing state transfer, vaex.ml.Pipeline save/load, KMeans/PCA workflows, scikit-learn estimator wrappers, or optional estimator integrations.

Read first

  • references/ml-workflows.md: end-to-end recipes for splits, transformers, sklearn wrappers, pipelines, state transfer, KMeans, PCA, and optional estimators.
  • references/ml-api-reference.md: public API locations, fitted attributes, trait names, wrapper methods, and memory semantics.
  • references/troubleshooting.md: import, dependency, split, serialization, memory, encoder, batch-training, and optional integration failures.
  • scripts/ml_pipeline_smoke.py: tiny installed package smoke for StandardScaler + scikit-learn LinearRegression Predictor + pipeline save/load.

Route here when

  • The user asks for df.ml.train_test_split, df.ml.state_transfer, or a train/test ML workflow that keeps Vaex transformations reusable.
  • The task needs Vaex ML transformers: numerical scalers, categorical encoders, target encoders, cycle features, GroupByTransformer, KBinsDiscretizer, PCA/PCAIncremental, RandomProjections, or KMeans.
  • The task wraps an estimator with vaex.ml.sklearn.Predictor or IncrementalPredictor and wants predictions as a lazy virtual column.
  • The task saves, loads, or transfers a Vaex ML Pipeline or DataFrame state.
  • The task asks whether XGBoost, LightGBM, CatBoost, TensorFlow, River, ANNOY, or PyGBM can be integrated with Vaex ML.

Route elsewhere

  • For generic expression construction, selections, aggregation, groupby, joins, or feature engineering that is not packaged as a reusable ML transformer, use ../expressions-analytics/SKILL.md.
  • For DataFrame object model, lazy virtual columns, active ranges, filtering, copying, or materialization basics, use ../dataframe-core/SKILL.md.

Operating rules

  1. Import vaex.ml for the ML accessor and transformer classes. Import vaex.ml.sklearn explicitly before using Predictor or IncrementalPredictor. Import vaex.ml.cluster explicitly for vaex.ml.cluster.KMeans.
  2. Assume the selected backend is CPU. Do not claim GPU support. TensorFlow is an optional extra and was not part of required verification.
  3. Split early: create train/test DataFrames before fitting target-aware encoders or predictive models. df.ml.train_test_split is an ordered shallow split; shuffle first when row order is meaningful.
  4. Fit transformers on training data, then apply them to compatible test or production DataFrames with transformer .transform(...), df.ml.state_transfer(), or a saved vaex.ml.Pipeline.
  5. transform(...) returns a shallow DataFrame copy with virtual columns in most Vaex ML objects. Predictor.fit(...), Predictor.predict(...), and many optional estimator .fit(...) paths copy selected features to in-memory arrays; IncrementalPredictor.fit(...) copies one batch at a time.
  6. Treat saved pipelines as trusted local artifacts. They can include serialized estimator state and require the same public packages to be installed when loaded.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351