Light-weight AutoML with LazyQSAR

Here we describe LazyQSAR, our library for baseline modeling of QSAR tasks

Installation

git clone https://github.com/ersilia-os/lazy-qsar.git
cd lazy-qsar
python -m pip install -e .

Usage

Get an example

You can find example data in the fantastic Therapeutic Data Commonsarrow-up-right portal.

from tdc.single_pred import Tox
data = Tox(name = 'hERG')
split = data.get_split()

Here we are selecting the hERG blockade toxicity dataset. Let's refactor data for convenience.

smiles_train = list(split["train"]["Drug"])
y_train = list(split["train"]["Y"])
smiles_valid = list(split["valid"]["Drug"])
y_valid = list(split["valid"]["Y"])

Build a model

Now we can train (and validate) a model based on Morgan fingerprints.

circle-exclamation

Last updated

Was this helpful?