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

Going over the max transforms limit #89

Closed
tagirshin opened this issue Oct 11, 2022 · 4 comments
Closed

Going over the max transforms limit #89

tagirshin opened this issue Oct 11, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@tagirshin
Copy link

Hello! During analysis of tree search results I found out that if I use standard config without specifying max_transforms parameter, the tool can give me routes with 7 transformations instead of standard 6. Here is an example of a found pathway:
route000

I tried to read the config file and on this side everything is fine:
screenshot

After I tried to browse through the code, but didn't catch the problem right away. I use the last version of aizynthfinder, taken from github.

Also, regarding this issue, I don't understand how max_transforms and number_of_steps are related. From the docs I've got, that max_transforms is the max depth of the MCTS tree, but why then number_of_steps is needed?

@SGenheden
Copy link
Contributor

I believe this is an old bug that has to do with the incorrect comparison operator being used. In some places in the code it should be "<" but it is "<=" that is implemented. We might update this, but in principle it doesn't affect the algorithm. One just has to reimagine what "max_transforms" is.

What is the "number_of_steps" you are referring to?

@tagirshin
Copy link
Author

tagirshin commented Nov 22, 2022

For example, when I read hdf5 file with results and statistics of a tree search, I have these columns:

Screenshot

So here I don't understand why max_transforms and number_of_steps are different

P.S. sorry for the long answer

@SGenheden
Copy link
Contributor

max_transforms refers to the depth of the MCTS search tree, i.e. it is a function over all routes extracted.
number_of_steps refers to the depth of top-ranked route

I will create an issue to add proper documentation for the output dictionaries.

@SGenheden SGenheden self-assigned this Nov 28, 2022
@SGenheden SGenheden added the bug Something isn't working label Nov 28, 2022
@SGenheden
Copy link
Contributor

Fixed by #141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants