Comments (7)
Hi. Thanks, but I am facing this issue when I run the inference model:
RuntimeError: Error(s) in loading state_dict for PropPredNet:
size mismatch for ligand_atom_emb.weight: copying a param with shape torch.Size([256, 30]) from checkpoint, the shape in current model is torch.Size([256, 31]).
Any idea how to resolve this?
from targetdiff.
It should be the rdkit version problem. In the expected rdkit version (2022.03), there are 8 hybridization types in total:
names = { 'OTHER': 7, 'S': 1, 'SP': 2, 'SP2': 3, 'SP3': 4, 'SP3D': 5, 'SP3D2': 6, 'UNSPECIFIED': 0, }
, but in the newer rdkit (like 2022.09), there is one more 'SP2D' type, which increases the number of atom features by 1.
To solve this problem, you can either reinstall the rdkit with the older version or remap the hybridization types by absorbing 'SP2D' into 'SP2'.
from targetdiff.
Thanks! Downgrading rdkit fixed the issue!
from targetdiff.
Hi,
Thank you for your interest in this work! Sure, I will clean up the binding affinity prediction related code and model checkpoints in the next few weeks. I will get back to you as soon as I'm done. Sorry for the long wait.
from targetdiff.
Hello, thank you for your work! Is there any update regarding the same? It would be of great help.
from targetdiff.
Hi, sorry for the late response. I have updated the binding affinity prediction code just now. You can check Binding Affinity Prediction -- Inference part to predict affinity via a complex structure.
from targetdiff.
Hi @guanjq , I am not able to replicate the results by re-training the EGNN model . However While using the pre-trained model I am able to replicate the results of RMSE: 1.316, MAE: 1.031, R^2 score: 0.633, Pearson: 0.797, Spearman: 0.782, mean/std: 6.412/1.621
.
I tried to keep the all the hyper-parameters and datasets(/data/pdbbind_v2016/pocket_10_refined
) by referring to the config found in the checkpoint shared and followed the readme to prepare the pockets and splits
My current results on the test set shared are
RMSE: 3.082, MAE: 2.412, R^2 score: -1.014, Pearson: 0.513, Spearman: 0.562, mean/std: 7.769/3.195
Any Idea what might me going wrong in re-training?
from targetdiff.
Related Issues (19)
- EGNN re-training HOT 2
- binding affinity embedding dimesion issue HOT 2
- in case of my own binding complex HOT 5
- A Bug with the Estimation of Pocket Size HOT 2
- Questions about pretrained models.
- Jensen-Shannon divergence
- the error while running sample_for_pocket
- how to get the batch.ligand_element_batch
- This work is very meaningful, but the code implementation is very poor
- Questions about data preprocessing
- result to mol?
- settings in training.yml
- FileNotFoundError: [Errno 2] No such file or directory: './data/crossdocked_v1.1_rmsd1.0_pocket10/index.pkl' HOT 1
- The dimension of time embedding HOT 1
- Reopening issue of not having pocket10 files for training HOT 1
- ZeroDivisionError in evaluation HOT 20
- 如何对在对指定的一个口袋进行采样后将结果转换为sdf文件? HOT 1
- Issue with Vina Docking During Molecule Evaluation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from targetdiff.