Repository navigation
Releases
Releases · ribesstefano/TACK
v2.0.0: Fast ensembles for PROTAC degradation prediction
TACK v2.0.0 adds fast ensembles: lightweight surrogate models that predict PROTAC degradation (Dmax, pDC50, activity) in seconds, on a laptop, with calibrated uncertainty. They need no GPU and, by default, no torch. The original deep-learning pipeline is still included.
Highlights
Fast ensembles (tackai.fusion)
- Quick predictions. Score new molecules in a given biological context (POI, E3 ligase, cell line, assay, treatment time). Molecules are featurised on the fly, so unseen compounds work.
- Three tasks:
dmax,pdc50(regression) andactivity(binary). - Two model families:
- M4: an exact Gaussian process with additive and cross-block product kernels (
FusionEnsemble,gpextra). - M7: regularised gradient-boosted trees (
XGBStackedEnsemble). It is the default and needs notorch.
- M4: an exact Gaussian process with additive and cross-block product kernels (
- Stacked ensembles with uncertainty. Members are combined by mixture-MLE (regression) or linear-pool (classification) weights. Uncertainty is calibrated by conformal intervals (regression) and temperature or Platt scaling (classification).
- Fast inference. Float32 serving, one shared biological context per batch, and cached kernel terms.
- Hub integration.
from_pretrained/push_to_hubfor ensembles (ailab-bio/TACK-Fast-Ensemble, with one subfolder per task) and for the context embeddings (ailab-bio/TACK-fusion-context). - Training tools.
FusionDatabuilds scaffold-grouped repeated-CV design matrices. Also included are:scripts/train_fast_models.pyandscripts/calibrate_fast_models.py. - Easy to explore. Built-in
help()methods onFusionDataandXGBStackedEnsemble, and a Colab-ready tutorial (notebooks/fast_TACK_models_tutorial.ipynb).
from tackai.fusion import FusionData, XGBStackedEnsemble
ensemble = XGBStackedEnsemble.from_pretrained("ailab-bio/TACK-Fast-Ensemble", subfolder="dmax")Lighter install
- The base install runs
FusionDataandXGBStackedEnsemblewithouttorch. - Optional extras:
[gp]adds the GP surrogate andFusionEnsemble;[training]adds the legacy Hydra/Lightning/Optuna stack. - Unseen assay types fall back to an
"unknown"embedding with a warning, so no sentence-transformer is required.
Legacy pipeline (unchanged)
tack train / predict / collect / evaluate and EnsemblePredictor still work as before, including the pre-trained ensembles (ailab-bio/TACK-ensembles).
Breaking changes
- Dependencies moved. The heavy legacy stack (
gdown,h5py, Lightning, Optuna, Transformers, Hydra, …) is no longer in the base install. Usepip install "tackai[training]"fortack train/tack predict.[dev,gp,training]runs the full test suite.
Install
git clone https://github.com/ribesstefano/TACK/
cd TACK
pip install . # fast ensembles (XGBoost), no torch
pip install ".[gp]" # + GP surrogate
pip install ".[gp,training]" # + legacy pipeline On macOS, set OMP_NUM_THREADS=1 when torch and xgboost are used in the same process.
Initial stable release
What's Changed
- Stable release of the codebase
- Datamodule speedup changes by @aalexpersson in #1
New Contributors
- @aalexpersson made their first contribution in #1
Full Changelog: https://github.com/ribesstefano/TACK/commits/v1.0.0