Downloads · 30 days
0
hmacdope-omsf/cyp3a4_chembl_lgbm_dev
cyp3a4_chembl_lgbm_dev is a machine learning model from hmacdope-omsf. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This project demos a machine learning model for predicting CYP3A4 inhibition values (pChEMBL) based on molecular structures. CYP3A4 is a critical enzyme involved in drug metabolism, and understanding a compound's inte…
Downloads · 30 days
0
Access
Public
Updated Mar 14, 2025
Repo size
1.6 MB
Likes
0
Public
Click a slice to open those files.
.pkl1.6 MB · 100%
From the Hugging Face model README
This project demos a machine learning model for predicting CYP3A4 inhibition values (pChEMBL) based on molecular structures. CYP3A4 is a critical enzyme involved in drug metabolism, and understanding a compound's interaction with this enzyme is essential for drug development and safety assessment.
To get started, clone this repo and use the demonstration inference.py script which looks like the below.
Architecture: LightGBM gradient boosting regressor Input features:
Output: pChEMBL value prediction (higher values indicate stronger inhibition)
from openadmet_models.models.gradient_boosting.lgbm import LGBMRegressorModel
from openadmet_models.features.combine import FeatureConcatenator
from openadmet_models.features.molfeat_properties import DescriptorFeaturizer
from openadmet_models.features.molfeat_fingerprint import FingerprintFeaturizer
import json
model = LGBMRegressorModel.deserialize("model.json", "model.pkl")
featurizer = FeatureConcatenator(featurizers=[FingerprintFeaturizer(fp_type="ecfp:4"), DescriptorFeaturizer(descr_type="mordred")])
# create some sample smiles
smiles = ["CCO", "CCN", "CCOc1ccccc1"]
# featurize the smiles
X, _ = featurizer.featurize(smiles)
# predict the properties
y_pred = model.predict(X)
print(y_pred)