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

How is the target vector (program rules sequence) in TreeGen created during training? #179

Open
brando90 opened this issue Jun 22, 2021 · 1 comment

Comments

@brando90
Copy link

TreeGen learns by predicting the rules from the target program. Thus, I assume you make the target program into an AST and in that process you get a sequence (that is padded) indicating which rule was used. In particular to do that you need to decide on an ordering for the rules. Did you use DFS, BFS or something else for that? In what part of the code are you doing that? The code seems hard to follow due to the Profilers...perhaps it was only meant for you to use.

Thanks for your time!

@brando90 brando90 changed the title How is the input vector for TreeGen generated? How is the target vector for program rules in TreeGen generated for training? Jun 22, 2021
@brando90 brando90 changed the title How is the target vector for program rules in TreeGen generated for training? How is the target vector (program rules sequence) in TreeGen created during training? Jun 22, 2021
@HiroakiMikami
Copy link
Owner

I converted the AST to a sequence of rules at https://github.com/HiroakiMikami/mlprogram/blob/master/mlprogram/actions/action_sequence.py#L310 by using DFS.

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