Repository navigation
Bracket exploding builds from the forward machine - #86
Merged
Merged
Conversation
When the bidirectional build explodes (the reverse mixed-state presentation does not close, after the retry ladder), generative_model now brackets C_g from the forward machine alone instead of raising: the future-window generator coverage bound (at most 30% of the budget) below, and the least state entropy among the forward epsilon-machine and the belief-free HMM search's generators, verified against the forward machine's words, above. The stages that need the reverse epsilon-machine are logged as skipped, and decomposition is None. Other failed builds still raise, as do minimal_wyner_model and minimal_functional_generator.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
generative_modelno longer raises when the bidirectional build explodes (bidir_class"explosion": the reverse mixed-state presentation does not close, after the retry ladder). It bracketsC_gfrom the forward ε-machine alone:L = 2and 3 (Löhr & Ay 2009), computed first with at most 30% of the budget, as on truncated builds;|S+|to|S+| + 2states, the rest of the budget split evenly between them), each word-verified against the forward machine with the pipeline's stationarity check;modelis aCoupledGenerativeModel,decompositionisNone, and thestructureentries that needS-(functional,lifting_residual,lifted) areNone;"needs the reverse ε-machine").resolve_bidirectionalraises a private subclass ofMixedStateExplosionErroron an explosion (same message, still aStochasticValidationError), and onlygenerative_modelcatches it. Other failed builds,minimal_wyner_modelandminimal_functional_generatorraise as before.Notes
reverse_max_states=1000and no ladder, a 60 s run returns [0.8827307, 1.0795992] in 60.1 s. Without a deadline the window bound there is 0.8828032, and 1.0795992 is the forward ε-machine's entropy, the best generator known.Test plan
minimal_wyner_model,minimal_functional_generatorand a"failed_build"still raise.C_mu+.test_generative_model.py,test_bidirectional_build.py,test_generative_model_invariants.pyandtest_generative_objectives.pypass.ty check(no new diagnostics),sphinx-build -W.