Skip to content

Commit

Permalink
add _ after fit variables
Browse files Browse the repository at this point in the history
  • Loading branch information
wd60622 committed Jan 14, 2024
1 parent a7ab311 commit 34045ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions latent_calendar/model/latent_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ def fit(self, X, y=None) -> "ConjugateModel":
if self.a is None:
self.a = hourly_prior(X)

self.prior = Dirichlet(alpha=self.a)
self.prior_ = Dirichlet(alpha=self.a)
return self

def transform(self, X, y=None) -> np.ndarray:
return multinomial_dirichlet(X, self.prior).dist.mean()
return multinomial_dirichlet(X, self.prior_).dist.mean()

def predict(self, X, y=None) -> np.ndarray:
return self.transform(X, y=y)

0 comments on commit 34045ff

Please sign in to comment.