@@ -60,45 +60,45 @@ def print_coefficients(self, round_to=None):
6060 def plot (self , * args , ** kwargs ) -> tuple :
6161 """Plot the model.
6262
63- Internally, this function dispatches to either `bayesian_plot ` or `ols_plot `
63+ Internally, this function dispatches to either `_bayesian_plot ` or `_ols_plot `
6464 depending on the model type.
6565 """
6666 if isinstance (self .model , PyMCModel ):
67- return self .bayesian_plot (* args , ** kwargs )
67+ return self ._bayesian_plot (* args , ** kwargs )
6868 elif isinstance (self .model , RegressorMixin ):
69- return self .ols_plot (* args , ** kwargs )
69+ return self ._ols_plot (* args , ** kwargs )
7070 else :
7171 raise ValueError ("Unsupported model type" )
7272
7373 @abstractmethod
74- def bayesian_plot (self , * args , ** kwargs ):
74+ def _bayesian_plot (self , * args , ** kwargs ):
7575 """Abstract method for plotting the model."""
76- raise NotImplementedError ("bayesian_plot method not yet implemented" )
76+ raise NotImplementedError ("_bayesian_plot method not yet implemented" )
7777
7878 @abstractmethod
79- def ols_plot (self , * args , ** kwargs ):
79+ def _ols_plot (self , * args , ** kwargs ):
8080 """Abstract method for plotting the model."""
81- raise NotImplementedError ("ols_plot method not yet implemented" )
81+ raise NotImplementedError ("_ols_plot method not yet implemented" )
8282
8383 def get_plot_data (self , * args , ** kwargs ) -> pd .DataFrame :
8484 """Recover the data of a PrePostFit experiment along with the prediction and causal impact information.
8585
86- Internally, this function dispatches to either `get_plot_data_bayesian ` or `get_plot_data_ols `
86+ Internally, this function dispatches to either `_get_plot_data_bayesian ` or `_get_plot_data_ols `
8787 depending on the model type.
8888 """
8989 if isinstance (self .model , PyMCModel ):
90- return self .get_plot_data_bayesian (* args , ** kwargs )
90+ return self ._get_plot_data_bayesian (* args , ** kwargs )
9191 elif isinstance (self .model , RegressorMixin ):
92- return self .get_plot_data_ols (* args , ** kwargs )
92+ return self ._get_plot_data_ols (* args , ** kwargs )
9393 else :
9494 raise ValueError ("Unsupported model type" )
9595
9696 @abstractmethod
97- def get_plot_data_bayesian (self , * args , ** kwargs ):
97+ def _get_plot_data_bayesian (self , * args , ** kwargs ):
9898 """Abstract method for recovering plot data."""
99- raise NotImplementedError ("get_plot_data_bayesian method not yet implemented" )
99+ raise NotImplementedError ("_get_plot_data_bayesian method not yet implemented" )
100100
101101 @abstractmethod
102- def get_plot_data_ols (self , * args , ** kwargs ):
102+ def _get_plot_data_ols (self , * args , ** kwargs ):
103103 """Abstract method for recovering plot data."""
104- raise NotImplementedError ("get_plot_data_ols method not yet implemented" )
104+ raise NotImplementedError ("_get_plot_data_ols method not yet implemented" )
0 commit comments