TopicGPT icon indicating copy to clipboard operation
TopicGPT copied to clipboard

Running the sample got ValueError: Expected 2D array, got 1D array instead

Open lawyinking opened this issue 1 year ago • 0 comments

ValueError: Expected 2D array, got 1D array instead:
array=[nan nan nan nan nan nan nan nan nan nan].
Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample.

lawyinking avatar Nov 20 '24 19:11 lawyinking