Closed aish-tan closed 2 years ago
For clarity, a "RL_config.json" file IS created in the _outputdir, and reads:
{
"logging": {
"job_id": "demo",
"job_name": "Reinforcement learning demo",
"logging_frequency": 10,
"logging_path": "/home/DL/AZReinvent/Reinvent_Output_Ash/REINVENT_RL_Tanimoto_Similarity_demo/progress.log",
"recipient": "local",
"result_folder": "/home/DL/AZReinvent/Reinvent_Output_Ash/REINVENT_RL_Tanimoto_Similarity_demo/results",
"sender": "http://0.0.0.1"
},
"parameters": {
"diversity_filter": {
"minscore": 0.4,
"minsimilarity": 0.4,
"name": "IdenticalMurckoScaffold",
"nbmax": 25
},
"inception": {
"memory_size": 100,
"sample_size": 10,
"smiles": []
},
"reinforcement_learning": {
"agent": "/home/DL/AZReinvent/ReinventCommunity/notebooks/models/random.prior.new",
"batch_size": 128,
"learning_rate": 0.0001,
"margin_threshold": 50,
"n_steps": 125,
"prior": "/home/DL/AZReinvent/ReinventCommunity/notebooks/models/random.prior.new",
"reset": 0,
"reset_score_cutoff": 0.5,
"sigma": 128
},
"scoring_function": {
"name": "custom_product",
"parallel": false,
"parameters": [
{
"component_type": "tanimoto_similarity",
"name": "Tanimoto similarity",
"specific_parameters": {
"smiles": [
"O=S(=O)(c3ccc(n1nc(cc1c2ccc(cc2)C)C(F)(F)F)cc3)N"
]
},
"weight": 1
}
]
}
},
"run_type": "reinforcement_learning",
"version": 3
}
Please try this: Go to the directory where Reinvent 3.0 was installed and rename Reinvent/configs/example.config.json to Reinvent/configs/config.json. Then try your notebook. Hopefully, it will work.
@xuzhang5788 Thanks a lot for your quick reply. The notebook works now.
Closing this issue.
Hello there, Firstly, thanks for developing the intuitive "ReinventCommunity" repo allowing an easy kick-start to ReInvent 3.0.
I would like to report this issue I am facing. I cloned both the main 'ReInvent 3.0' repo and this community repo on my machine, created the environments for both the base 'Reinvent 3.0' and the community as described in the instructions.
When running a demo community notebook (so far I have tried 2 of them: notebooks/Reinforcement_Learning_Demo_Simple_Tanimoto.ipynb and one more), I changed the paths as mentioned:
I didn't change anything else in the script to reproduce the example. However, the output captured under the:
would read:
And thus, while the Jupyter notebook is running fine and apparently the ReInvent code itself since the error is generated, for me it is not functioning.
The final line of code:
!head -n 15 {output_dir}/results/memory.csv
would thereby give me this error (for obvious reasons):Could you please provide me with some insights?
Thanks in advance! Kind regards, Aishvarya