Skip to content

Add user callback for progress info and improve adaptation options#295

Merged
aseyboldt merged 2 commits intopymc-devs:mainfrom
aseyboldt:user-callback
Mar 30, 2026
Merged

Add user callback for progress info and improve adaptation options#295
aseyboldt merged 2 commits intopymc-devs:mainfrom
aseyboldt:user-callback

Conversation

@aseyboldt
Copy link
Copy Markdown
Member

No description provided.

warnings.warn(
f"`{_old_name}` is deprecated. "
f"Use `adaptation='{_new_adaptation}'` instead.",
DeprecationWarning,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nobody ever sees DeprecationWarning, definitely not users

Suggested change
DeprecationWarning,
FutureWarning,

Copy link
Copy Markdown
Member

@ricardoV94 ricardoV94 left a comment

Choose a reason for hiding this comment

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

LGTM, suggest using FutureWarning instead of DeprecationWarning

@ricardoV94
Copy link
Copy Markdown
Member

Deprecation tests causing a straightforward failure: Caused by:
Could not initialize state because of bad initial gradient: Anyhow(ImportError: The 'flowjax' package is required to use normalizing flow adaptation.)

@ricardoV94
Copy link
Copy Markdown
Member

still expecting some deprecation warnings in the tests

@aseyboldt aseyboldt merged commit ff79b0b into pymc-devs:main Mar 30, 2026
8 checks passed
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.

2 participants