executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
modalGuides modAL-python active-learning workflows, query strategies, committees, Bayesian optimization, and optional deep integrations.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill when a task names modAL, modAL-python, ActiveLearner, Committee, BayesianOptimizer, active learning, uncertainty sampling, query by committee, ranked batch selection, expected error reduction, label-efficient model development, or optional modAL deep-learning integrations.
modAL is imported as modAL but installed from the package distribution modAL-python. It is a scikit-learn-oriented active-learning framework; most core workflows are CPU-only and do not require a GPU.
Minimal package check for a user environment:
python -m pip install modAL-python
python - <<'PY'
from importlib.metadata import version
import modAL
from modAL.models import ActiveLearner, Committee, CommitteeRegressor, BayesianOptimizer
print("modAL-python", version("modAL-python"), "import ok")
PY
For the historical 0.4.2 code covered by this skill, modern dependency resolvers may pick versions that are too new. If imports fail with np.float, force_all_finite, or pkg_resources errors, use the compatibility guidance in references/troubleshooting.md.
| Task signal | Read |
|---|---|
Pool-based or stream-based active learning, ActiveLearner.query, teach, fit, single-row shapes, only_new, bootstrap, on_transformed | sub-skills/learners-and-committees/SKILL.md |
Query by committee, Committee, CommitteeRegressor, vote, vote_proba, predict_proba, rebag, regression standard deviation | sub-skills/learners-and-committees/SKILL.md |
| Choosing or composing uncertainty, disagreement, batch, density, expected-error, multilabel, selector, or custom query strategies | sub-skills/query-strategies/SKILL.md |
BayesianOptimizer, PI/EI/UCB acquisition functions, bounded objective-evaluation loops, or get_max() tracking | sub-skills/bayesian-optimization/SKILL.md |
DeepActiveLearner, skorch/PyTorch estimators, MC dropout, modAL.dropout, Keras/TensorFlow examples, or optional backend imports | sub-skills/deep-and-optional-integrations/SKILL.md |
query method calls query_strategy(self, X_pool, **kwargs) and returns selected indices plus the selected rows; metrics are available only when the strategy returns them.X_training and y_training so modAL can fit during learner initialization.predict_proba; route regression uncertainty to regressors that provide predictive standard deviation or to committee-regressor disagreement.X_pool[idx].reshape(1, -1) and y_pool[idx].reshape(1,).scripts/ and sub-skill scripts/ directories.Run these from any current working directory in an environment with modAL installed:
python path/to/modal/scripts/modal_environment_smoke.py
python path/to/modal/scripts/modal_environment_smoke.py --include-optional-deep
Sub-skills contain deeper workflow-specific smoke helpers: