Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] - Equivalent of sklearn GaussianMixture.predict? #99

Open
vikram-s-narayan opened this issue Aug 8, 2022 · 1 comment
Open

Comments

@vikram-s-narayan
Copy link

vikram-s-narayan commented Aug 8, 2022

How does one do the equivalent of the following code with GaussianMixtures.jl?

import numpy as np
from sklearn.mixture import GaussianMixture
X = np.array([[1, 2], [1, 4], [1, 0], [10, 2], [10, 4], [10, 0]])
gm = GaussianMixture(n_components=2, random_state=0).fit(X)
gm.predict([[0, 0], [12, 3]]) #prints "array([1, 0])"

Thanks in advance for any pointers :)

@davidavdav
Copy link
Owner

I recall that I had included a PR providing such an interface, see scikitlearn.jl.

It might be that we need some better documentation, which currently is pretty poor anyways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants