Skip to content

Instantly share code, notes, and snippets.

@makispl
Last active August 31, 2021 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save makispl/8c67d50d62a0a4e3a3545671c5342547 to your computer and use it in GitHub Desktop.
Save makispl/8c67d50d62a0a4e3a3545671c5342547 to your computer and use it in GitHub Desktop.
# find the optimum number of clusters
bgm = BayesianGaussianMixture(n_components=10, n_init=7, max_iter=1000)
bgm.fit(pca_scores)
np.round(bgm.weights_, 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment