Chemprop Uncertainty and Advanced Workflows
Use this sub-skill when the user needs Chemprop 2.2.x uncertainty outputs or advanced workflow routing around chemprop predict, chemprop hpopt, chemprop convert, transfer/foundation starts, or interpretation. Keep basic chemprop train command construction in training-cli, prediction mechanics in prediction-fingerprints, and Python model internals in python-api-modeling.
Route Here For
- Selecting
--uncertainty-method, --calibration-method, and --evaluation-methods for prediction-time uncertainty.
- Checking compatibility between uncertainty estimators and training task types such as
regression-mve, regression-evidential, regression-quantile, classification-dirichlet, and multiclass-dirichlet.
- Designing calibration datasets and matching calibration feature side files to test/prediction inputs.
- Adding conformal prediction coverage checks for regression, multilabel classification, or multiclass classification.
- Planning Ray Tune hyperparameter optimization with
chemprop hpopt and optional dependency caveats.
- Converting older model artifacts with
chemprop convert, then routing converted models into prediction with the correct featurizer mode.
- Triaging transfer learning, foundation initialization, and interpretation workflows when they affect advanced Chemprop routing.
Route Elsewhere
- Ordinary
chemprop train commands, task/loss/metric basics, split handling, ensembles, replicates, and output layout: use ../training-cli/SKILL.md.
- Plain
chemprop predict or chemprop fingerprint command mechanics, output suffixes, model path discovery, and fingerprint layer selection: use ../prediction-fingerprints/SKILL.md.
- Programmatic construction of Chemprop datasets, MPNN modules, predictors, metrics, or Lightning loops: use
../python-api-modeling/SKILL.md.
- Deep schema design for reaction, multicomponent, atom/bond, constraint, or descriptor inputs: use the data and specialized task sub-skills when present.
Fast Uncertainty Patterns
Regression MVE with calibration and evaluation:
chemprop predict \
--test-path test.csv \
--model-path runs/mve/model_0/best.pt \
--output test_mve_unc.csv \
--uncertainty-method mve \
--cal-path calibration.csv \
--calibration-method zscaling \
--evaluation-methods nll-regression miscalibration_area ence spearman
Ensemble variance from multiple model files:
chemprop predict \
--test-path test.csv \
--model-paths runs/ensemble/model_0/best.pt runs/ensemble/model_1/best.pt \
--output ensemble_unc.csv \
--uncertainty-method ensemble
Quantile conformal regression:
chemprop predict \
--test-path test_with_targets.csv \
--model-path runs/quantile/model_0/best.pt \
--output conformal_intervals.csv \
--uncertainty-method quantile-regression \
--cal-path calibration.csv \
--calibration-method conformal-regression \
--conformal-alpha 0.1 \
--evaluation-methods conformal-coverage-regression
Required Reading
references/uncertainty.md: estimator, calibrator, evaluator aliases; compatibility rules; output interpretation; calibration feature alignment.
references/hyperparameter-optimization.md: chemprop hpopt command design, Ray Tune controls, search-space pruning, and optional dependency failures.
references/conversion-transfer-interpretation.md: chemprop convert, v1 featurizer requirements, transfer/foundation routing, and interpretation triage.
references/troubleshooting.md: fixes for missing hpopt dependencies, calibration mismatches, evaluator target requirements, method/task incompatibility, conformal alpha, conversion, and foundation model issues.
scripts/chemprop_uncertainty_args.py: self-contained planner that validates common uncertainty/hpopt/convert flag combinations without importing Chemprop.
Decision Checklist
- Identify the trained model family before choosing uncertainty flags: plain regression/classification, MVE, evidential, quantile, Dirichlet, dropout, or ensemble.
- Decide whether uncertainty is raw, calibrated, or conformalized; calibration requires
--cal-path plus matching parsing and feature flags for calibration data.
- Add
--evaluation-methods only when the prediction/test CSV includes target labels that match model output columns.
- For
ensemble, pass at least two model artifacts; for dropout, choose --uncertainty-dropout-p and --dropout-sampling-size deliberately.
- Use hpopt for training hyperparameter search, then apply the generated
best_config.toml in a later chemprop train run.
- Use
chemprop convert before inference only for older model artifact formats; v1-to-v2 converted models need v1 atom featurization at prediction time.
- When foundation or transfer initialization is part of the plan, confirm checkpoint/foundation exclusivity and freeze semantics before adding hpopt or uncertainty layers.
Evidence Base
This sub-skill distills Chemprop 2.2.3 behavior from the uncertainty estimator/calibrator/evaluator registries, prediction-time uncertainty CLI implementation, hpopt and convert CLI implementations, public hpopt/convert tutorials, uncertainty and hpopt notebook recipes, transfer/foundation examples, interpretation examples, and unit tests for uncertainty utilities and conversion. Runtime content is self-contained and does not require reopening repository docs, examples, or tests.
1---2name: uncertainty-advanced3description: "Route advanced Chemprop workflows for uncertainty estimation,4 calibration, conformal evaluation, Ray Tune hpopt, model conversion,5 transfer/foundation starts, and interpretation planning."6disable-model-invocation: true7metadata:8 source: https://skillmd.com/skills/vectorspacelab/uncertainty-advanced9 disco-role: operating10license: NOASSERTION11---1213# Chemprop Uncertainty and Advanced Workflows1415Use this sub-skill when the user needs Chemprop 2.2.x uncertainty outputs or advanced workflow routing around `chemprop predict`, `chemprop hpopt`, `chemprop convert`, transfer/foundation starts, or interpretation. Keep basic `chemprop train` command construction in `training-cli`, prediction mechanics in `prediction-fingerprints`, and Python model internals in `python-api-modeling`.1617## Route Here For1819- Selecting `--uncertainty-method`, `--calibration-method`, and `--evaluation-methods` for prediction-time uncertainty.20- Checking compatibility between uncertainty estimators and training task types such as `regression-mve`, `regression-evidential`, `regression-quantile`, `classification-dirichlet`, and `multiclass-dirichlet`.21- Designing calibration datasets and matching calibration feature side files to test/prediction inputs.22- Adding conformal prediction coverage checks for regression, multilabel classification, or multiclass classification.23- Planning Ray Tune hyperparameter optimization with `chemprop hpopt` and optional dependency caveats.24- Converting older model artifacts with `chemprop convert`, then routing converted models into prediction with the correct featurizer mode.25- Triaging transfer learning, foundation initialization, and interpretation workflows when they affect advanced Chemprop routing.2627## Route Elsewhere2829- Ordinary `chemprop train` commands, task/loss/metric basics, split handling, ensembles, replicates, and output layout: use `../training-cli/SKILL.md`.30- Plain `chemprop predict` or `chemprop fingerprint` command mechanics, output suffixes, model path discovery, and fingerprint layer selection: use `../prediction-fingerprints/SKILL.md`.31- Programmatic construction of Chemprop datasets, MPNN modules, predictors, metrics, or Lightning loops: use `../python-api-modeling/SKILL.md`.32- Deep schema design for reaction, multicomponent, atom/bond, constraint, or descriptor inputs: use the data and specialized task sub-skills when present.3334## Fast Uncertainty Patterns3536Regression MVE with calibration and evaluation:3738```bash39chemprop predict \40 --test-path test.csv \41 --model-path runs/mve/model_0/best.pt \42 --output test_mve_unc.csv \43 --uncertainty-method mve \44 --cal-path calibration.csv \45 --calibration-method zscaling \46 --evaluation-methods nll-regression miscalibration_area ence spearman47```4849Ensemble variance from multiple model files:5051```bash52chemprop predict \53 --test-path test.csv \54 --model-paths runs/ensemble/model_0/best.pt runs/ensemble/model_1/best.pt \55 --output ensemble_unc.csv \56 --uncertainty-method ensemble57```5859Quantile conformal regression:6061```bash62chemprop predict \63 --test-path test_with_targets.csv \64 --model-path runs/quantile/model_0/best.pt \65 --output conformal_intervals.csv \66 --uncertainty-method quantile-regression \67 --cal-path calibration.csv \68 --calibration-method conformal-regression \69 --conformal-alpha 0.1 \70 --evaluation-methods conformal-coverage-regression71```7273## Required Reading7475- `references/uncertainty.md`: estimator, calibrator, evaluator aliases; compatibility rules; output interpretation; calibration feature alignment.76- `references/hyperparameter-optimization.md`: `chemprop hpopt` command design, Ray Tune controls, search-space pruning, and optional dependency failures.77- `references/conversion-transfer-interpretation.md`: `chemprop convert`, v1 featurizer requirements, transfer/foundation routing, and interpretation triage.78- `references/troubleshooting.md`: fixes for missing hpopt dependencies, calibration mismatches, evaluator target requirements, method/task incompatibility, conformal alpha, conversion, and foundation model issues.79- `scripts/chemprop_uncertainty_args.py`: self-contained planner that validates common uncertainty/hpopt/convert flag combinations without importing Chemprop.8081## Decision Checklist82831. Identify the trained model family before choosing uncertainty flags: plain regression/classification, MVE, evidential, quantile, Dirichlet, dropout, or ensemble.842. Decide whether uncertainty is raw, calibrated, or conformalized; calibration requires `--cal-path` plus matching parsing and feature flags for calibration data.853. Add `--evaluation-methods` only when the prediction/test CSV includes target labels that match model output columns.864. For `ensemble`, pass at least two model artifacts; for `dropout`, choose `--uncertainty-dropout-p` and `--dropout-sampling-size` deliberately.875. Use hpopt for training hyperparameter search, then apply the generated `best_config.toml` in a later `chemprop train` run.886. Use `chemprop convert` before inference only for older model artifact formats; v1-to-v2 converted models need v1 atom featurization at prediction time.897. When foundation or transfer initialization is part of the plan, confirm checkpoint/foundation exclusivity and freeze semantics before adding hpopt or uncertainty layers.9091## Evidence Base9293This sub-skill distills Chemprop 2.2.3 behavior from the uncertainty estimator/calibrator/evaluator registries, prediction-time uncertainty CLI implementation, hpopt and convert CLI implementations, public hpopt/convert tutorials, uncertainty and hpopt notebook recipes, transfer/foundation examples, interpretation examples, and unit tests for uncertainty utilities and conversion. Runtime content is self-contained and does not require reopening repository docs, examples, or tests.