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
prediction-fingerprintsRun Chemprop prediction and fingerprint workflows from trained model artifacts, including model-path handling, output formats, ensembles, and fingerprint layer choices.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when an agent needs to run trained Chemprop model artifacts with chemprop predict or extract learned encodings with chemprop fingerprint. Keep prediction-time command construction, model path discovery, output naming, ensemble individual outputs, fingerprint layer choice, and inference artifact interpretation here.
Use this sub-skill for:
chemprop predict commands for CSV inputs and .pt or .ckpt model artifacts.chemprop fingerprint commands for learned model representations..csv, .pkl) or fingerprint outputs (.csv, .npz).Route elsewhere when the task is:
training-cli.uncertainty-advanced.uncertainty-advanced for conversion and compatibility decisions.Minimum prediction command:
chemprop predict \
--test-path new_inputs.csv \
--model-path models/best.pt \
--output predictions.csv
Core rules:
--test-path must be a .csv file.--model-path and --model-paths are aliases and accept one or more paths..pt model file, .ckpt checkpoint, or directory..pt files only; pass .ckpt files explicitly..csv or .pkl; if omitted, Chemprop writes <test_stem>_preds.csv beside the input.<output_stem>_individual<suffix> with per-model columns.See references/prediction-workflows.md for command patterns and output interpretation.
Minimum fingerprint command:
chemprop fingerprint \
--test-path new_inputs.csv \
--model-path models/best.pt \
--ffn-block-index 0 \
--output fingerprints.npz
Core rules:
--ffn-block-index is required.--ffn-block-index 0 returns the post-aggregation representation before FFN layers.--ffn-block-index 1 returns the first FFN linear block output; higher valid indexes select later FFN blocks..csv or .npz; if omitted, Chemprop uses <test_stem>_fps.csv as the base output.fingerprints_0.npz, fingerprints_1.npz, or new_inputs_fps_0.csv._mol_fingerprints, _atom_fingerprints, and _bond_fingerprints in the stem.See references/fingerprint-workflows.md for layer choice and output handling.
Prediction and fingerprint commands must reuse the structure parsing and featurization choices used to train the model. Important flags include:
--smiles-columns for named molecule columns and multicomponent molecule models.--reaction-columns plus --rxn-mode/--reaction-mode for atom-mapped reaction SMILES.--descriptors-path or --descriptors-columns for molecule-level descriptors.--atom-features-path, --atom-descriptors-path, --bond-features-path, and --bond-descriptors-path for side features.--multi-hot-atom-featurizer-mode, --keep-h, --add-h, --ignore-stereo, and --reorder-atoms for graph construction compatibility.Single-molecule default when neither --smiles-columns nor --reaction-columns is supplied: Chemprop reads the first CSV column as SMILES.
Use references/model-artifacts.md when choosing model paths or interpreting artifacts.
Key facts:
.pt files are normal exported model artifacts; .ckpt files are Lightning checkpoints that can be loaded when passed explicitly..pt files only.pred_0, pred_1.Use scripts/chemprop_predict_command_builder.py to plan commands without importing Chemprop or loading model files.
Examples:
python scripts/chemprop_predict_command_builder.py predict \
--test-path new_inputs.csv \
--model-path models/ \
--output predictions.csv \
--smiles-columns smiles
python scripts/chemprop_predict_command_builder.py fingerprint \
--test-path new_inputs.csv \
--model-path models/best.pt \
--output fingerprints.npz \
--ffn-block-index 0
The helper validates common suffix mistakes, notes model directory discovery behavior, warns about likely parsing mismatches, and can emit JSON with --json.
Use references/troubleshooting.md for failures.
Fast triage:
chemprop --help, chemprop predict --help, or chemprop fingerprint --help to confirm CLI availability..csv and output suffix is legal for the selected subcommand..pt, .ckpt, or directory, and that directory paths contain .pt files if relying on recursive discovery.--multi-hot-atom-featurizer-mode v1 or convert/verify the artifact before production inference.--accelerator cpu --devices 1 --num-workers 0 while debugging checkpoint loading or multiprocessing issues.