Getting an Value Error from using the mean squared error loss function #564
Unanswered
athenax246
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Increas the axis of the fiting data . |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am training a feed-forward neural network that takes in the input of shape (4040 ,2) and output of shape (4040, 4, 51).
I tried using the Panda data frame for it first, however, it does not seem to work with a 3-dimensional output shape. (If there is a way to covert 3-dimensional data into Panda data frame please let me know)
So for now I am using numpy array to store the inputs and outputs. But they are now the same shape, and will raise and error when going through the mean squared error loss function.
Any comments, solutions and suggestions are greatly appreciated!
The code I have is the following:
The error that I got is the following:
I need some advice with how to process multi-dimensional data (with different input and output shapes) with tensorflow in general. Because before this I was mostly relying on pd.dataframe, but now it does not seem to work for this situation. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions