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

Ast hash #2

Open
cristianoc opened this issue Jul 3, 2023 · 0 comments
Open

Ast hash #2

cristianoc opened this issue Jul 3, 2023 · 0 comments

Comments

@cristianoc
Copy link
Collaborator

Incorporate ast hash (from the ast without names of identifiers or constants) in the dataset.

Ast hash seen before
  old: 'myString.translate(None, string.punctuation)'
  new: 's.translate(None, string.punctuation)'
Ast hash seen before
  old: 'root.mainloop()'
  new: 'root.mainloop()'
{ "snippet": "foo", "ast_hash": "e5eb2fb5b4ef0783394b2ff2", ... }

guess that data augmentation by (1) partitioning input-output examples by AST hash and then (2) generating synthetic examples by randomly pairing inputs and output with the same hash would lead to a noticeable improvement

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

1 participant