Skip to content
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
28 changes: 20 additions & 8 deletions examples/datashader_example.ipynb

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions pymc3_hmm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ def plot_split_timeseries_histograms(
plot_data[sample_col],
axes_split_data=axes_split_data,
plot_fn=plot_timeseries_histograms,
**split_ts_kwargs,
)

return axes_split_data
Expand All @@ -487,7 +488,7 @@ def plot_split_timeseries_histograms(
def plot_ts_histograms(
axes: Axes,
data: pd.DataFrame,
sample_col: Optional[Text] = "Y_t",
sample_col: Text,
N_obs: Optional[int] = None,
**canvas_kwargs,
) -> Axes: # pragma: no cover
Expand Down Expand Up @@ -543,8 +544,9 @@ def plot_ts_histograms(


def plot_split_ts_histograms(
plot_data: pd.DataFrame,
observed_data: pd.Series,
sample_data: pd.DataFrame,
sample_col: Text,
nonsample_data: Union[pd.Series, pd.DataFrame],
plot_fn: Callable,
**split_ts_kwargs,
): # pragma: no cover
Expand All @@ -567,13 +569,15 @@ def plot_split_ts_histograms(

"""
axes_split_data = plot_split_timeseries(
observed_data, plot_fn=plot_fn, **split_ts_kwargs
nonsample_data, plot_fn=plot_fn, **split_ts_kwargs
)

_ = plot_split_timeseries(
plot_data,
sample_data,
axes_split_data=axes_split_data,
plot_fn=plot_ts_histograms,
sample_col=sample_col,
**split_ts_kwargs,
)

return axes_split_data