deep-and-optional-integrations
Optional DeepActiveLearner, PyTorch/skorch MC-dropout, and Keras/TensorFlow integration guidance for modAL.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- deep-and-optional-integrations
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Optional DeepActiveLearner, PyTorch/skorch MC-dropout, and Keras/TensorFlow integration guidance for modAL.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/deep-integrations.md7.2 KB
- 参考文档references/mc-dropout-reference.md6.2 KB
- 参考文档references/troubleshooting.md4.9 KB
- 脚本scripts/dropout_inspection.py5.5 KB
03 SKILL.md 正文
Deep and Optional Integrations
Use this sub-skill only when a modAL task explicitly involves optional deep-learning integrations: DeepActiveLearner, skorch-wrapped PyTorch estimators, Monte Carlo dropout query strategies from modAL.dropout, or legacy Keras/TensorFlow examples. These workflows are not part of the minimum classical scikit-learn active-learning path.
Read and run map
- Read references/deep-integrations.md when building or debugging
DeepActiveLearner, skorch/PyTorch estimators,warm_startteaching,num_epochs/batch_size, or optional Keras/TensorFlow active-learning wrappers. - Read references/mc-dropout-reference.md when using
mc_dropout_bald,mc_dropout_mean_st,mc_dropout_max_entropy,mc_dropout_max_variationRatios,get_predictions,set_dropout_mode, dropout layer indexes, tensor/dict pools, or MC-dropout memory knobs. - Read references/troubleshooting.md when imports fail, skorch initialization or
partial_fitbehavior is unclear, NumPy arrays are passed to MC dropout, a dropout layer index raisesKeyError, or a user expects CUDA/Keras behavior that was not selected. - Run scripts/dropout_inspection.py to perform a deterministic CPU-only import and dropout-layer-index inspection against the installed package. Use
--helpfirst; the script does not train, download data, require credentials, or write files.
Boundaries
- For ordinary
ActiveLearner,Committee,CommitteeRegressor, bootstrapping,only_new=Truewith classical or Keras-like estimators, and learner setup not involving deep wrappers, use ../learners-and-committees/SKILL.md. - For ordinary uncertainty, disagreement, ranked-batch, density, expected-error, multilabel, or custom query strategies that do not require MC dropout, use ../query-strategies/SKILL.md.
- Do not claim that Keras/TensorFlow, torchvision datasets, or CUDA are available unless the user's runtime has separately installed and smoke-tested them.
Fast routing cues
| User signal | Next file |
|---|---|
| “DeepActiveLearner calls initialize”, “skorch NeuralNetClassifier”, “warm_start”, “partial_fit” | references/deep-integrations.md |
| “MC dropout BALD/entropy/variation ratios”, “dropout_layer_indexes”, “logits_adaptor” | references/mc-dropout-reference.md |
| “RuntimeError only dict or tensors supported”, “bad dropout layer index”, “missing torch/skorch/Keras” | references/troubleshooting.md |
| “Which dropout layer indexes are valid?” | scripts/dropout_inspection.py |
04 同仓库更多 Skills
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.
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.
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.
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.
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.
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).