Skip to content

Document early stopping with custom loop_fn - #119

Open
sylvesterkaczmarek wants to merge 1 commit into
google-deepmind:mainfrom
sylvesterkaczmarek:docs/early-stopping-loop
Open

Document early stopping with custom loop_fn#119
sylvesterkaczmarek wants to merge 1 commit into
google-deepmind:mainfrom
sylvesterkaczmarek:docs/early-stopping-loop

Conversation

@sylvesterkaczmarek

Copy link
Copy Markdown

Fixes #102.

Add a README example showing reward-patience early stopping through the existing loop_fn hook and jax.lax.while_loop, while keeping num_simulations as the hard upper bound.

Validation:

  • Example executed against current Mctx; a 10-simulation search stopped after 4 simulations with patience=2
  • mctx_test.py: 1 passed
  • tree_test.py: 4 passed

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

Successfully merging this pull request may close these issues.

early stopping

1 participant