Views
No views yet
| Metric | Mean Value | Max (Best Fold) |
|---|---|---|
| Spearman $ | ||
| ho$ | 0.633 | 0.760 |
| Pearson $r$ | 0.618 | 0.749 |
| MAE | 0.32 Log10 units | 0.25 |
| Reconstruction | 100% | 100% |
1import torch
2from peptide_vae import PeptideVAE
3
4# Load model
5model = PeptideVAE(latent_dim=16, hidden_dim=64)
6checkpoint = torch.load("pytorch_model.bin", map_location="cpu")
7model.load_state_dict(checkpoint["model_state_dict"])
8model.eval()
9
10# Encode sequence
11seq = "LLGDFFRKSKEKIGKEFKRIVQRIKDFLRNLVPRTES"
12with torch.no_grad():
13 out = model.encode([seq])
14 z_hyp = out['z_hyp']
15 mic_pred = model.predict_mic(z_hyp)
16
17print(f"Predicted Log10(MIC): {mic_pred.item():.4f}")1@software{peptide_vae_2026,
2 author = {AI Whisperers},
3 title = {PeptideVAE: Hyperbolic Antimicrobial Peptide Predictor},
4 year = {2026},
5 url = {https://huggingface.co/ai-whisperers/peptide-vae-amp}
6}