Maybe this is a naive question, but I have a NN that uses
relu for all layers. In train data there is no problem, but in test (or validation) the outputs are all 0. I used
MinMaxScaler with a feature range of
(0,1) and in the test data there are actually negative values that are given as inputs to the NN. This is because I applied the
MinMaxScaler only to the train data and then applied the scaler's
transform function to the test data, resulting in negative values.
- Are those negative values the reason because I'm getting 0 as outputs? How can I correct this?
- The way to apply the
MinMaxScaleris correct, right? Do
fit_transformonly to train data and just
transformto validation data?
- Is best practice to use
MinMaxScalershould be the way?
EDIT: If it is useful, what I'm trying is to get as output is a number greater than 0. It is a regression problem.