Skip to content

[BUG] bugfixes for distribution base class default methods#281

Merged
fkiraly merged 8 commits into
mainfrom
fixes-shuffle
Apr 25, 2024
Merged

[BUG] bugfixes for distribution base class default methods#281
fkiraly merged 8 commits into
mainfrom
fixes-shuffle

Conversation

@fkiraly

@fkiraly fkiraly commented Apr 25, 2024

Copy link
Copy Markdown
Collaborator

This PR fixes some bugs for base class default methods detected through #266:

  • _log_pdf, _pdf, _cdf defaults
  • in TestAllDistributions, _shuffle_df function being incorrect if iloc is not equal to loc index

Fixes are tested in #266.

@fkiraly fkiraly merged commit f1ced8f into main Apr 25, 2024
fkiraly added a commit that referenced this pull request Apr 25, 2024
By accident, the tests for distribution base class default methods,
e.g., obtaining `pdf` form `log_pdf` if not implemented, were not
activated.

This PR remedies that, and also upgrades the test class to the new
distribution extension contract.

Depends on #281, for bugfixes of
bugs discovered through enabling the tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug module:probability&simulation probability distributions and simulators

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant