Skip to content

Probe Implementation #5

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Probe Implementation #5

wants to merge 3 commits into from

Conversation

ReubenJ
Copy link
Member

@ReubenJ ReubenJ commented Nov 15, 2024

Implementation of the method from "Just-in-time learning for bottom-up enumerative synthesis".

afbeelding

TODO:

  1. Init Probe top-down iterator
  2. init update function for the probabilities of the grammar
  3. write priority function that multiplies the priority function of the program and returns the most likely program
  4. update derivation_heuristic accordingly
  5. write tests
  • check that log probabilities align with the intended enumeration order
  • re-use parent's probabilities to calculate the current probability again.

Possible future work:

@ReubenJ ReubenJ added the enhancement New feature or request label Nov 15, 2024
@ReubenJ ReubenJ self-assigned this Nov 15, 2024
@THinnerichs
Copy link
Member

I added a prototypical implementation of Probe to Garden. I still have to write proper tests + docs.

@ReubenJ I am overwriting some core functions of Herb, like priority_function, rulenode_log_probability,... . Also, I am not happy with overwriting all top-down iterators and having to do the same for all possible iterator-type classes.
Maybe there is a smoother way?

@THinnerichs THinnerichs assigned THinnerichs and unassigned ReubenJ Feb 19, 2025
@THinnerichs THinnerichs marked this pull request as ready for review March 5, 2025 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants