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.

Plot posterior gives anomalous results for small values

See original GitHub issue

Describe the bug I have a model with a small parameter, and on plot posterior the variable is displayed (incorrectly) as having a mean of “0.0” and an HPD between 0.0 and 0.0.

Here’s a snippet of the picture: image

To Reproduce

Attached a Jupyter notebook sufficient to reproduce the issue (had to attach it as a .txt file, but should simply be rename-able to run).

Wood Model.ipynb.txt

Expected behavior Expected the values displayed to be scaled appropriately.

Additional context arviz version 0.3.3 MacOS Mojave

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
rpgoldmancommented, Jun 13, 2019

Should we use significant digits instead of rounding?

1reaction
OriolAbrilcommented, May 22, 2019

Should we add some rules there? Like if values are less than x use scientific notation?

What about allowing a custom format string? We could change the hpd[0].round(round_to) to format_str.format(hpd[0]) if format_string is present, otherwise, the round_to argument would be used. It could also allow the option of using a list instead of a string to use different format for every plot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Detecting Anomalies in Data
sampler. Post processing of BARD results. Description. Draw samples from the posterior distribution to give the locations of anomalous segments.
Read more >
Anomalous values and missing data in clinical and ... - NCBI
Anomalous values can be the result of errors of recording, typing, measurement by instruments, or may be true outliers.
Read more >
Single Model-Based Anomaly Detection for Multi-Item Datasets
Detecting anomalies on time series has a comprehensive usage field ... of the preceding and posterior values of the corresponding operators
Read more >
A Multi-Level Anomaly Detection Algorithm for Time-Varying ...
Abstract This work presents a modeling and analysis framework for graph se- quences which addresses the challenge of detecting and contextualizing anoma-.
Read more >
BAYESIAN ANOMALY DETECTION METHODS FOR ... - JSTOR
Anomaly detection on graphs of social or communication ... The definition of a graph anomaly ... with the same parameters gives very similar...
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