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

Small update_with_oracle_cut_size fixes #12314

Draft
wants to merge 3 commits into
base: v5
Choose a base branch
from

Conversation

danieldk
Copy link
Contributor

@danieldk danieldk commented Feb 21, 2023

Description

Fix an off-by-one in TransitionModel.forward, where we always did one move more than the maximum number of moves.

This explosed another issue: when creating cut states, we skipped states where the (maximum number of) moves from that state only applied transitions that did not modify the buffer.

Replace uses of random.uniform by random.randrange.

Todo: replace remaining uses of has_gold, since this is more correct.

Types of change

Checklist

  • I confirm that I have the right to submit this contribution under the project's MIT license.
  • I ran the tests, and all new and existing tests passed.
  • My changes don't require a change to the documentation, or if they do, I've added all required information.

@danieldk danieldk added bug Bugs and behaviour differing from documentation feat / parser Feature: Dependency Parser labels Feb 21, 2023
Fix an off-by-one in `TransitionModel.forward`, where we always did one
move more than the maximum number of moves.

This explosed another issue: when creating cut states, we skipped states
where the (maximum number of) moves from that state only applied
transitions that did not modify the buffer.

Replace uses of `random.uniform` by `random.randrange`.
@danieldk danieldk marked this pull request as draft February 22, 2023 08:43
@danieldk danieldk added the 🔜 v4.0 Related to upcoming v4.0 label Jun 5, 2023
@svlandeg svlandeg deleted the branch explosion:v5 January 29, 2024 09:15
@svlandeg svlandeg closed this Jan 29, 2024
@svlandeg svlandeg reopened this Jan 29, 2024
@svlandeg svlandeg changed the base branch from v4 to v5 January 29, 2024 09:40
@svlandeg svlandeg added 🔜 v5.0 Related to upcoming v5.0 and removed 🔜 v4.0 Related to upcoming v4.0 labels Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs and behaviour differing from documentation feat / parser Feature: Dependency Parser 🔜 v5.0 Related to upcoming v5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants