You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
The line of code, below, in NUTS is repeated twice and it generates a warning, we want to fix the line to get rid of the warning.
ifself._epsilon_bar=="unset": # Initial value of epsilon_bar for sampling
The warning:
/Users/amal/Documents/research_code/CUQI-DTU/CUQIpy/cuqi/experimental/mcmc/_hmc.py:315: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison
if self._epsilon_bar == "unset": # Initial value of epsilon_bar for sampling
Description
The line of code, below, in NUTS is repeated twice and it generates a warning, we want to fix the line to get rid of the warning.
The warning:
Example to reproduce
See FENIcs notebook in CUQI book.
https://github.com/CUQI-DTU/CUQI-Book/pull/74/files#diff-65b82e897cf4d25e53f93d35bcc5f582f2a6ebc08a631af478f5546e7e591fd5
Related online discussion of this warning
https://stackoverflow.com/questions/40659212/futurewarning-elementwise-comparison-failed-returning-scalar-but-in-the-futur
DoD
The text was updated successfully, but these errors were encountered: