Skip to content

Commit

Permalink
added docs
Browse files Browse the repository at this point in the history
  • Loading branch information
theGreatHerrLebert committed Oct 25, 2023
1 parent 4afe27a commit 51c5916
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyims/pyims/mixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ def predict_proba(self, data):
return normalized_probs.numpy()

def predict(self, data):
"""Get the cluster ids under the current mixture model"""
return np.argmax(self.predict_proba(data), axis=1)

def sample(self, n_samples=1):
Expand Down

0 comments on commit 51c5916

Please sign in to comment.