Skip to content

Fix tests#29

Open
Michael-Howes wants to merge 3 commits intoaangelopoulos:mainfrom
Michael-Howes:tests
Open

Fix tests#29
Michael-Howes wants to merge 3 commits intoaangelopoulos:mainfrom
Michael-Howes:tests

Conversation

@Michael-Howes
Copy link
Copy Markdown
Contributor

Fixed tests in tests/test_mean.py, tests/test_cross.py and tests/test_logistic.py.

For test_mean.py

  • Fixed broadcasting error in test_ppi_mean_multid.
  • Changed lambd_optim_mode to lam_optim_mode in test_ppi_mean_elem.
  • Changed conformal baseline to use np.inf instead of np.infty.

For test_cross.py and test_logistic.py changed the synthetic data generation in de-biasing tests to use binomial sampling instead of a threshold. This ensures the synthetic data is generated from a logistic model and so biased can be computed.

Also formatted entire repo with black.

- Fix broadcasting error in test_ppi_mean_multid.
- Change lambd_optim_mode to lam_optim_mode in test_ppi_mean_elem.
- Change confromal baseline to use np.inf instead of np.infty.
@Michael-Howes Michael-Howes mentioned this pull request Mar 20, 2026
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.

1 participant