Skip to content

Instantly share code, notes, and snippets.

@orcaman
Created July 21, 2019 21:12
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 orcaman/f539336f982d8c8e4ffd9c8802970a16 to your computer and use it in GitHub Desktop.
Save orcaman/f539336f982d8c8e4ffd9c8802970a16 to your computer and use it in GitHub Desktop.
gmm.py
gmm = GaussianMixture(20, covariance_type='full', random_state=0)
gmm.fit(data)
t1 = gmm.sample(len(data_real))
data_new = t1[0]
points_new = pca.inverse_transform(data_new)
df_fake = pd.DataFrame(points_new, columns=list(data_real)[:-2])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment