Instructions to use Delower/dpp4-pic50-extra-trees with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use Delower/dpp4-pic50-extra-trees with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("Delower/dpp4-pic50-extra-trees", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -8,6 +8,21 @@ tags:
|
|
| 8 |
|
| 9 |
Features: morgan1024, physchem
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
## Inference
|
| 12 |
|
| 13 |
```python
|
|
|
|
| 8 |
|
| 9 |
Features: morgan1024, physchem
|
| 10 |
|
| 11 |
+
Model: the original LazyPredict ExtraTrees model, a sklearn Pipeline
|
| 12 |
+
(ColumnTransformer + ExtraTreesRegressor, 100 trees). Unpickling
|
| 13 |
+
`model.pkl` requires `lazypredict` (listed in `requirements.txt`).
|
| 14 |
+
Inference uses `infer.py`, which builds a pandas DataFrame with
|
| 15 |
+
columns `feature_0`..`feature_1029` (Morgan 1024 first, then the 6
|
| 16 |
+
physchem descriptors in the order MolWt, MolLogP, TPSA, NumHDonors,
|
| 17 |
+
NumHAcceptors, NumRotatableBonds).
|
| 18 |
+
|
| 19 |
+
## Metrics (original LazyPredict run)
|
| 20 |
+
|
| 21 |
+
Test set (80/10/10 split, seed 42): RMSE 0.4449, MAE 0.1437, R2 0.8668.
|
| 22 |
+
FDA-12: RMSE 0.9637, MAE 0.6794 (11 of 12 compounds with a wetlab pIC50).
|
| 23 |
+
|
| 24 |
+
See `metrics.csv` and `fda.csv` in this repo for the full tables.
|
| 25 |
+
|
| 26 |
## Inference
|
| 27 |
|
| 28 |
```python
|