Skip to content

Commit

Permalink
remove warning in ic print (#1321)
Browse files Browse the repository at this point in the history
* remove warning in ic print

* update changelog

Co-authored-by: Osvaldo Martin <[email protected]>
  • Loading branch information
OriolAbril and aloctavodia authored Jul 28, 2020
1 parent 9fcae72 commit afa477e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* plot_posterior: fix overlap of hdi and rope (#1263)
* `plot_dist` bins argument error fixed (#1306)
* improve handling of circular variables in `az.summary` (#1313)
* Removed change of default warning in `ELPDData` string representation (#1321)
* update `radon` example dataset to current InferenceData schema specification (#1320)

### Deprecation
Expand Down
6 changes: 0 additions & 6 deletions arviz/stats/stats_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,11 +437,6 @@ def get_log_likelihood(idata, var_name=None):
(0.7, 1] (bad) {{4:{0}d}} {{8:6.1f}}%
(1, Inf) (very bad) {{5:{0}d}} {{9:6.1f}}%
"""
SCALE_WARNING_FORMAT = """
The scale is now log by default. Use 'scale' argument or 'stats.ic_scale' rcParam if
you rely on a specific value.
A higher log-score (or a lower deviance) indicates a model with better predictive
accuracy."""
SCALE_DICT = {"deviance": "deviance", "log": "elpd", "negative_log": "-elpd"}


Expand Down Expand Up @@ -478,7 +473,6 @@ def __str__(self):
"Count", "Pct.", *[*counts, *(counts / np.sum(counts) * 100)]
)
base = "\n".join([base, extended])
base = "\n".join([base, SCALE_WARNING_FORMAT])
return base

def __repr__(self):
Expand Down

0 comments on commit afa477e

Please sign in to comment.