Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix process_init_approx #984

Merged
merged 1 commit into from
May 24, 2024
Merged

fix process_init_approx #984

merged 1 commit into from
May 24, 2024

Conversation

avehtari
Copy link
Contributor

When using approximate inference algorithm fit objects as init there could be some errors that this PR fixes

  • Issue: lp__ or lp_approx__ may contain NaN. NA, or Inf. Fix: replace non-finite lw with -Inf
  • Issue: pareto_smooth() was estimating r_eff, but for independent draws from approximate normals r_eff=1 should be used: Fix: add argument r_eff=1 to pareto_smooth() call

@avehtari avehtari requested a review from andrjohns May 24, 2024 08:39
Copy link
Collaborator

@andrjohns andrjohns left a comment

Choose a reason for hiding this comment

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

Thanks! Looks good, just one question

R/args.R Show resolved Hide resolved
@andrjohns andrjohns merged commit 1679aa7 into master May 24, 2024
11 checks passed
@andrjohns andrjohns deleted the process_init_approx_fix branch May 24, 2024 11:08
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