Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chemprop Issue with Custom Model in Reinvent_TLRL.ipynb #148

Open
kong0706 opened this issue Oct 16, 2024 · 3 comments
Open

Chemprop Issue with Custom Model in Reinvent_TLRL.ipynb #148

kong0706 opened this issue Oct 16, 2024 · 3 comments

Comments

@kong0706
Copy link

I trained a chemoprop model (version 1.7.1) using my own data, and the model performed well. I embedded it into REINVENT and it ran smoothly on Reinvent_TLRL.ipynb. However, when I used the chemoprop model to predict the generated molecules, I found that the predicted values were significantly different from the ChemProp(raw) in stage_2.csv. I speculate that this may be a problem with the chemoprop model, because when I used the model.pt provided in Reinvent_TLRL.ipynb, the predicted values of the generated molecules were consistent with the ChemProp(raw) in stage_2.csv. I don't know how to solve this problem. Can you provide some constructive suggestions? Thank you.

@kong0706
Copy link
Author

The chemprop scoring component in the toml file is written like this. Since my training set scores are all between 0-1, I did not add a score conversion function. Additionally, I uploaded my model.pt file. model.zip

[[stage.scoring.component]]
[stage.scoring.component.ChemProp]
[[stage.scoring.component.ChemProp.endpoint]]
name = "ChemProp"
weight = 0.6
params.checkpoint_dir = "/tmp/R4_notebooks_output/chemprop"
params.rdkit_2d_normalized = true
params.target_column = "score"

@halx
Copy link
Contributor

halx commented Oct 16, 2024

I can't really add much to this. I had a similar experience with the TNKS2 model you are referring to. The model has been trained with ChemProp 1.5.2. Predictions with version 1.6, however, produced significantly different results. I do not know what the origin of that is.

@kong0706
Copy link
Author

Thank you for your reply. I can only try using ChemProp 1.5.2 and observe the results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants