Downloads · 30 days
0
Arko007/toxipredict-gnn-models
toxipredict-gnn-models is a feature extraction model from Arko007. Use it when you need embeddings to search or compare text. It is set up for pytorch. The card lists the license as mit.
Uncertainty-aware multi-task graph neural network trained on the Tox21 dataset for predicting toxicity across 10 biological endpoints, with 5-fold cross-validated performance.
Downloads · 30 days
0
Access
Public
Updated Jun 27, 2026
Parameters
522K
2.1 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.1 MB · 100%
From the Hugging Face model README
Uncertainty-aware multi-task graph neural network trained on the Tox21 dataset for predicting toxicity across 10 biological endpoints, with 5-fold cross-validated performance.
| Property | Value |
|---|---|
| Architecture | MultiTaskGNN_ResGATv2_JK_VN |
| Input | Molecular graphs (SMILES → 45-dim node, 11-dim edge features) |
| Output | 10 binary toxicity predictions + uncertainty weights |
| Parameters | 12 learnable homoscedastic uncertainty log-variance parameters |
| Training Data | Tox21 (6264 training compounds after scaffold split) |
| Validation | 5-fold Bemis-Murcko scaffold cross-validation |
| Framework | PyTorch 2.10 + PyTorch Geometric 2.6 |
5-Fold Cross-Validation: 0.7856 ± 0.0394 Mean AUC
The model was evaluated using Bemis-Murcko scaffold split, ensuring that structurally similar molecules are grouped in the same fold. This provides a realistic estimate of generalization to novel chemical scaffolds.
| Task | Type |
|---|---|
| NR-AR | Nuclear Receptor |
| NR-AhR | Nuclear Receptor |
| NR-Aromatase | Nuclear Receptor |
| NR-ER | Nuclear Receptor |
| NR-PPAR-gamma | Nuclear Receptor |
| SR-ARE | Stress Response |
| SR-ATAD5 | Stress Response |
| SR-HSE | Stress Response |
| SR-MMP | Stress Response |
| SR-p53 | Stress Response |
The model extends standard GAT with three key innovations:
import torch
from safetensors.torch import load_file
from huggingface_hub import hf_hub_download
# Download model
model_path = hf_hub_download(
repo_id="Arko007/toxipredict-gnn-models",
filename="model.safetensors"
)
state_dict = load_file(model_path)
# Load config
config_path = hf_hub_download(
repo_id="Arko007/toxipredict-gnn-models",
filename="model_config.json"
)
import json
with open(config_path) as f:
config = json.load(f)
# Initialize model with same architecture
model = MultiTaskGNN_ResGATv2_JK_VN(
node_dim=config["node_dim"],
edge_dim=config["edge_dim"],
hidden_dim=config["hidden_dim"],
num_tasks=config["num_tasks"],
dropout=config["dropout"]
)
model.load_state_dict(state_dict)
model.eval()
MIT