Scoring metrics for multidimensional inputs #2372
-
I'm trying to do a multidimensional input gaussian regressor, and I wanted to check it's performance with the functions in metrics, but when I've tried, it always gives errors (the two tensors should be the same shape). Reading the code, I've realized that there seems to be no functions for multidimensional inputs. And the tutorial certainly does not mention anything about that. I'm asking here because I'm new to this library and don't know much, but is there a simple way to do scoring metrics when your inputs are more than 1-dimensional? If there isn't, then it might be a good proposition for a new feature... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Can you post a code example that reproduces the error? The metrics should work for multidimensional inputs. |
Beta Was this translation helpful? Give feedback.
-
Ok, I managed to solve my problem (scoring multidimensional outputs. handling multidimensional inputs is done correctly). Doing: mean_squared_error(model(test_x,test_x)[0], test_y[:,0])
mean_squared_error(model(test_x,test_x)[1], test_y[:,1]) seems to deal correctly with scoring each output |
Beta Was this translation helpful? Give feedback.
Ok, I managed to solve my problem (scoring multidimensional outputs. handling multidimensional inputs is done correctly).
Doing:
seems to deal correctly with scoring each output