-
Notifications
You must be signed in to change notification settings - Fork 47
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
Aggregated Objective does not return expected outputs using return_dict
#1410
Comments
maybe @dweindl can help here? |
I am not too familiar with either
That makes sense, because often
I would rather handle |
Okay, I thought that |
I don't know how it's currently used, but one of the goals would be using it with PEtab problems comprising multiple models (#439) and I wouldn't add anything that will complicate this. I think it's nevertheless possible to provide some meaningful visualizations. Just iterate over the objectives and visualize what's possible and give a warning if any of those cannot be handled. |
True, thanks then i will leave it open. |
Bug description
The functions available in
pypesto.visualize.model_fit
cannot work with anAggregatedObjective
and hence fail.There are two reasons:
visualize_aggregated
by adding a new property to theAggregatedObjective
)pypesto_problem.objective(x, return_dict=True)
does return emptyrdatas
. (this I could not fix right away)Expected behavior
The visuslization routines should still work properly.
Also I would expect
pypesto_problem.objective(x, return_dict=True)
to return non emptyrdatas
.Calling
pypesto_problem.objective._objectives[0](x, return_dict=True)
instead works and does return non emptyrdatas
.To reproduce
I attached a minimal example using the Blasi model and PeTab.
minimal example.zip
Environment
pypesto
version: branchvisualize_aggregated
The text was updated successfully, but these errors were encountered: