Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
cluhmann committed Aug 22, 2024
1 parent cd649e3 commit a3334c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pymc_marketing/model_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,9 @@ def fit(
if self.X is None or self.y is None:
raise ValueError("X and y must be set before calling build_model!")
if self.output_var in X.columns:
raise ValueError(f"X includes a column named '{self.output_var}', which conflicts with the target variable.")
raise ValueError(

Check warning on line 552 in pymc_marketing/model_builder.py

View check run for this annotation

Codecov / codecov/patch

pymc_marketing/model_builder.py#L552

Added line #L552 was not covered by tests
f"X includes a column named '{self.output_var}', which conflicts with the target variable."
)

if not hasattr(self, "model"):
self.build_model(self.X, self.y)
Expand Down

0 comments on commit a3334c3

Please sign in to comment.