Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change plots submodule name to interpret #705

Merged
merged 8 commits into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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