googlecolab / colabtools

Python libraries for Google Colaboratory
Apache License 2.0
2.18k stars 708 forks source link

05.12-Gaussian Mixtures (using the GMM as a generative model) #4639

Closed FrankKosl closed 2 months ago

FrankKosl commented 3 months ago

Describe the current behavior A clear and concise explanation of what is currently happening.

Describe the expected behavior A clear and concise explanation of what you expected to happen.

What web browser you are using (Chrome, Firefox, Safari, etc.)

Additional context Link to a minimal, public, self-contained notebook that reproduces this issue.

FrankKosl commented 3 months ago

Current Colab version: data_new, label_new = gmm.sample(100) data_new.shape Result: AttributeError: 'tuple' object has no attribute 'shape'

Corrected code: data_new = gmm.sample(100)[0] data_new.shape

cperry-goog commented 3 months ago

We'll need a minimal reproducible notebook to reproduce and investigate.