Weird parameter vector evaluation failure
See original GitHub issueI would like to report a weird behaviour of the pypesto objective.
I attach a minimal example in which this occurs:
- Executing
success.py
all runs fine - Executing
error.py
an error occurrs in the last objective evaluation (which was successful in the previous script).
The error that occurs is
Traceback (most recent call last):
File "/home/elba/PhD/IntegrationScaling/PYTHON/GRID/error.py", line 80, in <module>
res = problem.objective.call_unprocessed(next_x, [0], 'mode_fun')
File "/usr/local/lib/python3.9/dist-packages/pypesto-0.2.7-py3.9.egg/pypesto/objective/aggregated.py", line 87, in call_unprocessed
return aggregate_results([
File "/usr/local/lib/python3.9/dist-packages/pypesto-0.2.7-py3.9.egg/pypesto/objective/aggregated.py", line 88, in <listcomp>
objective.call_unprocessed(x, sensi_orders, mode, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/pypesto-0.2.7-py3.9.egg/pypesto/objective/amici.py", line 337, in call_unprocessed
self.apply_steadystate_guess(data_ix, x_dct)
File "/usr/local/lib/python3.9/dist-packages/pypesto-0.2.7-py3.9.egg/pypesto/objective/amici.py", line 385, in apply_steadystate_guess
(x_sim - guess_data['x'])[
IndexError: arrays used as indices must be of integer (or boolean) type
And only occurs when the first objective is evaluated with the gradients, then the second fails (just execute the notebooks).
The only difference between success.py
and error.py
lies in line 77 and the failure comes in the second objective evaluation.
Thanks!
EDIT: This next_x
parameter vector is a new guess that is proposed during parameter profile and leads to failure.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Error evaluating parameter 'Value' in simulink
The strange this is : if I run the m-file first and then I try calling the function again, it works,. So I...
Read more >XGBoost custom evaluation function causing "cannot ...
I find the traceback a bit odd (see below). I use custom folds and xgb.cv is runnable if I remove the fevl and...
Read more >Evaluation of error vector magnitude due to combined IQ ...
Abstract: Novel closed form expressions for the error vector magnitude (EVM) are presented. The expressions combine the.
Read more >Initial evaluation of model at starting point failed! - Questions
Hi PyMC3 team, I am currently trying to implement the following model of causal inference that was originally demonstrated in Stan here.
Read more >Bug in Mesh evaluation or Mesh closest point parameter output
I have a mesh here (from an half sphere). Points and Normals from Mesh Eval have some strange behaviors. Normals have a length...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
solved
okay… I have
I will update
amici
andpetab
and see if that solves the issue