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

Implement callbacks for python solvers #361

Merged
merged 1 commit into from
May 17, 2024
Merged

Commits on May 17, 2024

  1. Implement callbacks for python solvers

    We add a callback hook for:
    - ARS
    - CGP
    - lazy A*
    - LRT A*
    - MaxentIRL
    - POMCP
    - sb3 wrapper
    
    A callback is a function, called at each solver's iteration,  taking the solver as argument
    and returning a boolean. If returning True, the solver stops.
    
    We also make some intermediate results attributes from the solver to be
    accessible in the callback.
    
    And add limited docstring so that the signature of solvers __init__()
    will show in the doc with the callback behaviour documented.
    nhuet committed May 17, 2024
    Configuration menu
    Copy the full SHA
    39766c6 View commit details
    Browse the repository at this point in the history