Skip to content

Commit

Permalink
Change plots submodule name to interpret (#705)
Browse files Browse the repository at this point in the history
Co-authored-by: Osvaldo A Martin <[email protected]>
Co-authored-by: Tomas Capretto <[email protected]>
  • Loading branch information
3 people authored Aug 17, 2023
1 parent 5dde496 commit 00f415c
Show file tree
Hide file tree
Showing 13 changed files with 1,974 additions and 2,881 deletions.
1 change: 1 addition & 0 deletions bambi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from .models import Model
from .priors import Prior
from .version import __version__
from . import interpret


__all__ = [
Expand Down
11 changes: 11 additions & 0 deletions bambi/interpret/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from bambi.interpret.effects import comparisons, predictions, slopes
from bambi.interpret.plotting import plot_comparisons, plot_predictions, plot_slopes

__all__ = [
"comparisons",
"slopes",
"predictions",
"plot_comparisons",
"plot_predictions",
"plot_slopes",
]
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pandas as pd

from bambi.models import Model
from bambi.plots.utils import (
from bambi.interpret.utils import (
ConditionalInfo,
enforce_dtypes,
get_covariates,
Expand Down
4 changes: 2 additions & 2 deletions bambi/plots/effects.py → bambi/interpret/effects.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
import xarray as xr

from bambi.models import Model
from bambi.plots.create_data import create_differences_data, create_predictions_data
from bambi.plots.utils import (
from bambi.interpret.create_data import create_differences_data, create_predictions_data
from bambi.interpret.utils import (
average_over,
ConditionalInfo,
identity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np
import pandas as pd

from bambi.plots.utils import Covariates, get_unique_levels, get_group_offset, identity
from bambi.interpret.utils import Covariates, get_unique_levels, get_group_offset, identity


def plot_numeric(
Expand Down
6 changes: 3 additions & 3 deletions bambi/plots/plotting.py → bambi/interpret/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
from pandas.api.types import is_categorical_dtype, is_numeric_dtype, is_string_dtype

from bambi.models import Model
from bambi.plots.effects import comparisons, slopes, predictions
from bambi.plots.plot_types import plot_categoric, plot_numeric
from bambi.plots.utils import get_covariates, ConditionalInfo
from bambi.interpret.effects import comparisons, slopes, predictions
from bambi.interpret.plot_types import plot_categoric, plot_numeric
from bambi.interpret.utils import get_covariates, ConditionalInfo
from bambi.utils import get_aliased_name, listify


Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions bambi/plots/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from bambi.plots.effects import comparisons, predictions, slopes
from bambi.plots.plotting import plot_comparisons, plot_predictions, plot_slopes
from bambi.interpret.effects import comparisons, predictions, slopes
from bambi.interpret.plotting import plot_comparisons, plot_predictions, plot_slopes


__all__ = [
Expand Down
2,777 changes: 933 additions & 1,844 deletions docs/notebooks/plot_comparisons.ipynb

Large diffs are not rendered by default.

1,917 changes: 953 additions & 964 deletions docs/notebooks/plot_predictions.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 00f415c

Please sign in to comment.