Skip to content

Commit

Permalink
Update _pkbc.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rmj3197 committed Sep 3, 2024
1 parent f3effa2 commit 472486e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions QuadratiK/spherical_clustering/_pkbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,8 +571,8 @@ def predict(
num_data, num_var = X.shape
if self.dat.shape[1] != X.shape[1]:
raise ValueError(
f"X has {num_var} features, but PKBC is expecting {
self.dat.shape[1]} features as input. Please provide same number of features as the fitted data."
f"X has {num_var} features, but PKBC is expecting {self.dat.shape[1]} features as input. \
Please provide same number of features as the fitted data."
)
log_w_d = (num_var / 2) * (np.log(2) + np.log(np.pi)) - sp.gammaln(num_var / 2)
v_mat = np.dot(X, self.mu_[num_clust].T)
Expand Down

0 comments on commit 472486e

Please sign in to comment.