x and y can be no greater than 2D, in the graph

107 Views Asked by At

fixing an error ValueError: x and y can be no greater than 2-D, but have shapes (23,) and (23, 12, 1) and to make my original graph with prediction graph line

1

There are 1 best solutions below

0
AudioBubble On

You can use reshape

a = np.random.random(size=(23, 12, 1))
a.shape   #(23, 12, 1)

#Reshape
a = a.reshape((23,12))
a.shape   #(23,12)

Let us know if the issue still persists. Thanks!