Skip to content

fix: [BUG] GeneralizedPareto: false log_pdf exact tag, missing#962

Open
JiwaniZakir wants to merge 1 commit intosktime:mainfrom
JiwaniZakir:fix/issue-961
Open

fix: [BUG] GeneralizedPareto: false log_pdf exact tag, missing#962
JiwaniZakir wants to merge 1 commit intosktime:mainfrom
JiwaniZakir:fix/issue-961

Conversation

@JiwaniZakir
Copy link

Fixes #961

GeneralizedPareto in skpro/distributions/gen_pareto.py incorrectly claimed log_pdf as an exact capability and was missing the distr:paramtype tag entirely. The log_pdf method was inherited without a closed-form implementation, making the tag false. Removes log_pdf from capabilities:exact and adds "distr:paramtype": "parametric" to _tags. Expands get_test_params from 2 to 3 parameter sets, adding array-valued c and explicit index/columns to improve broadcast and shape coverage.

Copy link
Collaborator

@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tag is correct but the scipy adapter is not used correctly. The methods should all be removed, and the parameter loc renamed, so the scipy adapter can be used.

@fkiraly fkiraly added bug module:probability&simulation probability distributions and simulators labels Mar 21, 2026
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.

[BUG] GeneralizedPareto: false log_pdf exact tag, missing distr:paramtype, insufficient test params

2 participants