question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Weird parameter vector evaluation failure

See original GitHub issue

I would like to report a weird behaviour of the pypesto objective.

Minimal example code

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:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
elbaraimcommented, Aug 27, 2021

solved

0reactions
elbaraimcommented, Aug 27, 2021

okay… I have

>>> import pypesto
>>> pypesto.__version__
'0.2.7'
>>> import amici
>>> amici.__version__
'0.11.13'
>>> import petab
>>> petab.__version__
'0.1.14'

I will update amici and petab and see if that solves the issue

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found