Skip to content

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