Deep learning module instantiation and validation
Curated, evidence-grounded skill and software-tool collections for scientific AI agents, generated by the AgenticScienceBuilder
npx -y skills add HolobiomicsLab/asb-skill-collections --skill deep-learning-module-instantiation-and-validationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 14 stars14 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use when you have cloned or loaded a deep-learning architecture extension (e.g., chemprop-IR) and need to verify that its feature extraction component can be instantiated and produces correctly shaped feature tensors before integrating it into a larger pipeline or training loop.
The file declares its own license as CC-BY-4.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
6.2 KB, ~1.0k tokens by cl100k_base, as published. Nobody here has run it
deep-learning-module-instantiation-and-validation
Summary
Instantiate and validate a deep-learning feature extraction module (such as spectral feature extractors in chemprop-IR) by loading its implementation, configuring it with molecular inputs, and verifying that output tensors match expected dimensionality, data types, and architectural constraints.
When to use
You have cloned or loaded a deep-learning architecture extension (e.g., chemprop-IR) and need to verify that its feature extraction component can be instantiated and produces correctly shaped feature tensors before integrating it into a larger pipeline or training loop.
When NOT to use
- Input is already a pre-computed feature table or tensor file; skip to downstream model training.
- The deep-learning module is from a pre-built, tested package with built-in validation; use the package's native tests instead.
- You are performing hyperparameter tuning or model selection; validation should occur before this skill, not during it.
Inputs
- Feature extraction module source code (Python)
- Molecular inputs (SMILES strings or graph representations)
- Architecture specification or configuration file defining expected feature dimensions
Outputs
- Instantiated feature extraction module (PyTorch module or equivalent)
- Feature tensors with verified shape and dtype
- Validation report confirming output dimensionality matches specification
How to apply
First, parse the feature extraction module source code from the repository to identify the named spectral features and their construction logic. Second, instantiate the module with molecular input handling (e.g., SMILES strings or molecular graphs parsed via the base library). Third, run inference on a small set of example molecules to generate feature tensors. Fourth, compare the output tensor shape and data type against the architecture's specifications. Fifth, confirm that features match the expected dimensionality defined in the model configuration. Use this process to catch shape mismatches, missing dependencies, or initialization errors before full-scale training.
Related tools
- chemprop (Base message-passing neural network architecture for molecular property prediction) — https://github.com/chemprop/chemprop
- chemprop-IR (Extension of chemprop with spectral feature extraction for infrared spectral predictions) — https://github.com/chemprop/chemprop
Examples
from chemprop_ir import SpectralFeatureExtractor
import torch
smiles_list = ['CC(C)Cc1ccc(cc1)C(C)C(O)=O', 'CN1C=NC2=C1C(=O)N(C(=O)N2C)C']
extractor = SpectralFeatureExtractor()
feature_tensors = extractor(smiles_list)
assert feature_tensors.shape == (2, 128), f'Expected shape (2, 128), got {feature_tensors.shape}'
assert feature_tensors.dtype == torch.float32, f'Expected dtype float32, got {feature_tensors.dtype}'
Evaluation signals
- Output tensor shape matches the expected dimensionality defined in the architecture specification (e.g., batch_size × num_features).
- Output tensor data type is correct (e.g., float32) and matches the model's precision expectations.
- Feature extraction completes without runtime errors (shape mismatches, dtype incompatibilities, or missing dependencies).
- A small test batch of example molecules produces non-null, non-NaN feature values with reasonable numeric ranges.
- The extracted feature tensor can be successfully passed as input to the next layer or module in the pipeline without shape or type errors.
Limitations
- Module validation does not test model accuracy or predict real spectral properties; it only confirms structural correctness.
- Validation on a small example set may not catch edge cases or failure modes that appear only with larger or more diverse molecular inputs.
- No changelog or version documentation is provided in the referenced repository, so compatibility between chemprop and chemprop-IR versions must be inferred or tested empirically.
Evidence
- [other] Parse the feature extraction implementation to understand the named spectral features and their construction logic.: "Parse the feature extraction implementation to understand the named spectral features and their construction logic."
- [other] Instantiate the spectral feature extraction module with molecular input handling (SMILES/graph parsing).: "Implement or instantiate the spectral feature extraction module with molecular input handling (SMILES/graph parsing)."
- [other] Validate that the extracted features match the expected dimensionality and data types defined in the chemprop-IR architecture.: "Validate that the extracted features match the expected dimensionality and data types defined in the chemprop-IR architecture."
- [intro] The
chemprop-IRarchitecture is an extension ofchempropdescribed in the paper: "Thechemprop-IRarchitecture is an extension ofchempropdescribed in the paper [Analyzing Learned Molecular Representations for Property Prediction]" - [intro] Message passing neural networks can be used for infrared spectral predictions: "This repository contains message passing neural networks for spectral predictions as described in the paper"
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.