Skip to main content

Screen a compound library

Problem: keep only compounds with drug-like lipophilicity, good solubility and low predicted toxicity. Uses: Khaos, RDKit and pandas.

Similarity search over embeddings

Problem: find analogues of a lead compound. Uses: Khaos, RDKit and FAISS.

Profile a lead compound

Problem: get a quick property profile for one molecule. Uses: Khaos alone.

Inputs and outputs for each model

These are real outputs of the v1 models, run through their exported ONNX files on held-out examples. The shapes listed are the exact ONNX inputs and outputs; batch and other named sizes are dynamic.

chem_mol_embedding

A molecule is given as a SMILES string. It is turned into token ids, per-atom features and a bond adjacency matrix (the featurize function in training/chem/train.py), and the model returns one 256-dimensional vector. Model inputs: tokens int64 [batch, length]; atoms float32 [batch, atoms, 32]; adj float32 [batch, atoms, atoms]; atom_mask float32 [batch, atoms]
Model outputs: vector float32 [batch, 256]
Input
Output

chem_logp

A SMILES string in, one number out. The model’s output is standardized; multiplying by target_std and adding target_mean from manifest.json gives the value in real units. Model inputs: tokens int64 [batch, length]; atoms float32 [batch, atoms, 32]; adj float32 [batch, atoms, atoms]; atom_mask float32 [batch, atoms]
Model outputs: value float32 [batch, 1]
Input
Output

chem_solubility

A SMILES string in, one number out. The model’s output is standardized; multiplying by target_std and adding target_mean from manifest.json gives the value in real units. Model inputs: tokens int64 [batch, length]; atoms float32 [batch, atoms, 32]; adj float32 [batch, atoms, atoms]; atom_mask float32 [batch, atoms]
Model outputs: value float32 [batch, 1]
Input
Output

chem_toxicity

A SMILES string in, the probability of activity in 12 Tox21 assays plus ClinTox clinical-trial toxicity out. The four highest are shown, with the dataset’s measured label (null where it is unknown). Model inputs: tokens int64 [batch, length]; atoms float32 [batch, atoms, 32]; adj float32 [batch, atoms, atoms]; atom_mask float32 [batch, atoms]
Model outputs: value float32 [batch, 13]
Input
Output