openai-cookbook
openai-cookbook copied to clipboard
Visualizing_embeddings_in_2D - AttributeError: 'list' object has no attribute 'shape'
When I run the examples/Visualizing_embeddings_in_2D.ipynb
notebook, I get an error during tsne.fit_transform(matrix)
:
791 def _check_params_vs_input(self, X):
--> 792 if self.perplexity >= X.shape[0]:
793 raise ValueError("perplexity must be less than n_samples")
AttributeError: 'list' object has no attribute 'shape'
Is this a problem with library versions I have installed? A regression from newer versions?
![image](https://user-images.githubusercontent.com/108/203911923-e871966e-c2f0-4be7-b48f-e17b7250f10e.png)
![image](https://user-images.githubusercontent.com/108/203911585-6eb905bf-f64b-4e7b-8002-a8206f30d173.png)
Sorry if this is a noob python/pandas library mismatch question.