Skip to content

Pass model to add_fit_to_inference_data #538

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

Closed
wants to merge 1 commit into from

Conversation

OriolAbril
Copy link
Member

Without this find_map only works when called inside a model context, otherwise this step has no access to the model object

@@ -336,7 +336,7 @@ def find_MAP(
}

idata = map_results_to_inference_data(optimized_point, frozen_model, include_transformed)
idata = add_fit_to_inference_data(idata, raveled_optimized, H_inv)
idata = add_fit_to_inference_data(idata, raveled_optimized, H_inv, model)
Copy link
Member

Choose a reason for hiding this comment

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

To avoid name confusion?

Suggested change
idata = add_fit_to_inference_data(idata, raveled_optimized, H_inv, model)
idata = add_fit_to_inference_data(idata, raveled_optimized, H_inv, model=model)

@ricardoV94
Copy link
Member

Fixed in #543

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