Liver toxicity β€” COMBINATION deployment (ExtraTrees + GAT blend)

The combined liver-toxicity deployment model for the organ-toxicity programme. This is the liver model used for EGFR toxicity assessment going forward.

Combination (locked):

blended_prob = 0.55 * ExtraTrees_prob + 0.45 * GAT_prob
  • ExtraTrees (Arch3) β€” ExtraTreesClassifier on the fp_desc block (Morgan bits + MACCS + prepared RDKit descriptors). Source repo: Delower/liver-extratrees-deployment.
  • GAT (Arch2) β€” graph attention network on molecular graphs. Source repo: Delower/liver-gat-deployment.
  • Flag threshold 0.5 per component and for the blend. flagged_by_both (both components at or above 0.5) is reported alongside the blend as the programme's highest-concern readout.

Deployment provenance β€” read this first

This is a deployment version, built to the programme's deployment definition:

  • Both components are full-pool deployment refits: each was trained on ALL labeled liver data the programme holds (1,891 unique compounds), with the regulatory benchmark compounds absorbed in the TRAINING part only β€” never in validation or testing β€” so the models learn from the regulatory data.
  • The blend itself was not retrained: this repo packages the two existing deployment refits with the benchmark combination's locked weights (0.55 / 0.45).
  • Benchmark metrics do NOT apply to this deployment version. Because the regulatory sets are inside its training data, this version is never scored on them, and no test/external number describes it. Use the benchmark version of the combination for reported performance; use this deployment version for prediction.

Benchmark combination (provenance only)

The combination recipe's benchmark numbers β€” from the benchmark arm, where the components were trained on the train split only and the regulatory sets were held out:

  • Pooled regulatory AUROC 0.758
  • Withdrawn-drug capture 67/71 β€” the most sensitive liver readout in the benchmark (the GAT arm alone: pooled AUROC 0.788, withdrawn 66/71)

These numbers are provenance for the recipe. They do not describe this deployment refit.

Files

File Contents
extratrees_model.joblib ExtraTrees deployment refit bundle (model + fitted prep)
gat_model.pt GAT deployment refit checkpoint (epoch-37 state_dict)
deployment_common.py Shared featurization / graph / model code both components unpickle and run against
config.json Locked blend weights, thresholds, component provenance
extratrees_config.json, gat_config.json The component repos' own configs, carried over unchanged
infer.py Combined inference (below)
examples.json Example compounds with their expected component probabilities

Run it

pip install -r requirements.txt
python3 infer.py "CCO"
from infer import predict
predict("CCO")
# {
#   "extratrees_prob": ..., "gat_prob": ..., "blended_prob": ...,
#   "extratrees_flag": ..., "gat_flag": ..., "blended_flag": ...,
#   "flagged_by_both": ...
# }

Input is a SMILES string; output is the probability of the DILI-concern (toxic) class from each component and the locked blend. A component probability is None when that component cannot parse the structure, and the blend is None unless both components scored.

Known profile

The liver programme is deliberately high-sensitivity / low-specificity: on past DPP-4 screens both component deployments flagged over 90% of potent leads. Treat a flag as a concern to triage β€” with flagged_by_both the strongest signal β€” not as a verdict.

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support