'x and y can be no greater than 2D, in the graph
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
Solution 1:[1]
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!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Tfer3 |
