forked from pymc-devs/pymc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revive ArviZ aliases, but raise DeprecationWarning on old wrappers
Also see pymc-devs#4536 where the wrappers were brought back for v3. Closes pymc-devs#4528
- Loading branch information
1 parent
b2e64cb
commit 5b34301
Showing
6 changed files
with
76 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
***** | ||
Stats | ||
***** | ||
|
||
.. currentmodule:: pymc3.stats | ||
|
||
Statistics and diagnostics are delegated to the | ||
`ArviZ <https://arviz-devs.github.io/arviz/index.html>`_. | ||
library, a general purpose library for | ||
"exploratory analysis of Bayesian models." | ||
Refer to its documentation to use the diagnostics functions directly. | ||
"exploratory analysis of Bayesian models". | ||
|
||
Functions from the `arviz.stats` module are available through ``pymc3.<function>`` or ``pymc3.stats.<function>``, | ||
but for their API documentation please refer to the :ref:`ArviZ documentation <arviz:stats_api>`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright 2021 The PyMC Developers | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
"""Alias for the `stats` submodule from ArviZ. | ||
Diagnostics and auxiliary statistical functions are delegated to the ArviZ library, a general | ||
purpose library for "exploratory analysis of Bayesian models." | ||
See https://arviz-devs.github.io/arviz/ for details. | ||
""" | ||
import sys | ||
|
||
import arviz as az | ||
|
||
for attr in az.stats.__all__: | ||
obj = getattr(az.stats, attr) | ||
if not attr.startswith("__"): | ||
setattr(sys.modules[__name__], attr, obj) | ||
|
||
|
||
__all__ = tuple(az.stats.__all__) |