-
Notifications
You must be signed in to change notification settings - Fork 111
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
Parameters #8
Comments
Hi, |
Dear Thomas,thanks for your letter: |
My input is: Oc1ccc(cc1)c2ccccc2 |
These errors are generated by rdkit when the model generates non valid SMILES. The generated SMILES (e.g 2-212121O ) are completely wrong and the included Prior doesn’t usual generate these kind of SMILES. I’m not sure where you input a single SMILES to get this result. main.py doesn’t take single SMILES as input. |
Process finished with exit code 1 |
Dear Thomas,thanks for your letter: I would like to ask why this happens. |
It seems that you have a completely biased prior which only produces a few different smiles. This error occurs when you have less then 10 different smiles in one batch. By default we generate 128 smiles and simply print the first unique 10 smiles during the training. Please dramatically increase your training set (or simply use the included chembl dataset) or adjust the code if you really just want to create less than 10 sequences...
… On 12. Nov 2018, at 07:41, daskjdahsd ***@***.***> wrote:
These errors are generated by rdkit when the model generates non valid SMILES. The generated SMILES (e.g 2-212121O ) are completely wrong and the included Prior doesn’t usual generate these kind of SMILES. I’m not sure where you input a single SMILES to get this result. main.py doesn’t take single SMILES as input.
Please make sure that you use the old pytorch version and you are able to run the main.py command from the readme.
Dear Thomas,thanks for your letter:
Thank you very much. I have run out of the program. Maybe I'll ask you a little question. When I iterate for more than 100 times, there is a mistake sometimes.
Step 62 Fraction valid SMILES: 100.0 Time elapsed: 0.08h Time left: 3.68h
Agent Prior Target Score SMILES
-2.52 -18.73 -12.03 0.34 O=C1Cc2ccccc2C1
-1.97 -19.52 -11.20 0.42 Cc1ccccc1Oc1ccccc1Oc1ccccc1
File "G:\REINVENT-master\REINVENT-master\train_agent.py", line 128, in train_agent
-3.36 -23.29 -16.15 0.36 c1ccccc1Oc1ccccc1
-1.37 -15.60 -5.52 0.50 O=C1c2ccccc2Cc2ccccc21
print(" {:6.2f} {:6.2f} {:6.2f} {:6.2f} {}".format(agent_likelihood[i],
-2.09 -22.97 -14.81 0.41 Cc1ccccc1Oc1ccccc1Oc1ccccc1O
IndexError: index 9 is out of bounds for axis 0 with size 9
-2.81 -19.01 -10.98 0.40 Cc1ccccc1Oc1ccccc1O
-2.56 -16.92 -7.18 0.49 O=C1Oc2ccccc2Cc2ccccc21
-2.42 -22.77 -14.98 0.39 Cc1ccccc1Oc1ccccc1Oc1ccccc1N+[O-]
-2.76 -16.01 -9.03 0.35 Oc1ccccc1Oc1ccccc1
I would like to ask why this happens.
thanks!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
Dear Thomas,I am sorry to bother you agin.I would like to ask you: when we generate a new molecule, we want to test its molecular weight, ClogP. Can you provide the source code? Thank you very much indeed. |
x = torch.multinomial(prob).view(-1)
This function procedure is wrong. How do I fill in this parameter? What parameters should I fill in num_samples?
Thanks
The text was updated successfully, but these errors were encountered: