Skip to content

remove threshold and threshold type from PRIM#418

Merged
quaquel merged 28 commits intomasterfrom
prim
Sep 22, 2025
Merged

remove threshold and threshold type from PRIM#418
quaquel merged 28 commits intomasterfrom
prim

Conversation

@quaquel
Copy link
Copy Markdown
Owner

@quaquel quaquel commented Sep 16, 2025

This removes the threshold and threshold_type argument/keyword argument from PRIM.

Because they were overloaded to control prim's behavior when run in regression mode (a not well-known or documented feature) the changes are a bit more involved.

Overall, I now cleanly separate 2 versions of the algorithm: binary for scenario discovery, and regression (original behavior of PRIM).

closes #412

TODO

  • implement inspect functions for regression box
  • implement pairwise scatter for regression version of prim
  • check objective function behavior for regression for both maximizing and minimizing
  • unit tests
  • replace qp with KS test for regression

@coveralls
Copy link
Copy Markdown

coveralls commented Sep 16, 2025

Coverage Status

coverage: 88.032% (+1.6%) from 86.448%
when pulling 87e6134 on prim
into 6323372 on master.

@EwoutH
Copy link
Copy Markdown
Collaborator

EwoutH commented Sep 21, 2025

I did notice unexpected behavior sometimes setting thresholds, so nice that it's revisited.

This will be a breaking change without backwards compatibility right?

@quaquel
Copy link
Copy Markdown
Owner Author

quaquel commented Sep 21, 2025

Yes, most of the PRs of the last couple of weeks are not backward compatible. The version number on master is 3.0.0-dev because of this.

@quaquel quaquel merged commit 299bfef into master Sep 22, 2025
22 of 24 checks passed
@quaquel quaquel deleted the prim branch September 22, 2025 15:15
@quaquel quaquel added the feature label Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

remove threshold kwarg from prim

3 participants