Parameterised MDL cost function#145
Open
sfluegel05 wants to merge 5 commits into
Open
Conversation
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.
closes #143
This PR adds 3 command line parameters to Popper that are only relevant if the
--noisyflag is set:size-weightincreases the impact of program size on the total costfp-weightincreases the impact of false positivesfn-weightincreases the impact of false negativesI also tried to adjust the various heuristics that are influenced by the weights, but I am not sure if I got all of them right.
Potential issues
Heuristic in
tester.pyThe tester has some condition based on the number of TPs vs. program size. This should probably get weighted, but I'm not sure what the intention of this condition is:
Popper/popper/tester.py
Lines 161 to 166 in a4f3eb1
Timeout in
combiner_mdl.pyThe combiner only applies the anytime timeout if
last_combine_stageis false. This leads to Popper not terminating properly iffn-weightis set. My understanding is that the solver suddenly has to look at far larger rules to determine whether they make a minimal improvement in the number of FNs.Popper/popper/combiner_mdl.py
Lines 441 to 444 in a4f3eb1
Popper/popper/combiner_mdl.py
Lines 491 to 492 in a4f3eb1
I tested this for the
noisy-zendo2-10task with a timeout of 30 seconds. With NuWLS, Popper terminated after ~90s. With CPSAT, Popper didn't terminate within 400s. For now, I have removed the exemption for the last combine stage.Results on
noisy-zendo2-10I tested this for the
noisy-zendo2-10example.The results are as you would expect -
size-weightgives you shorter rules,fp-weightgives you better precision,fn-weightbetter recall.Below are the commands and solutions:
Standard MDL:
With size weight:
With FP weight:
With FN weight: