How to get un-normalized regression predictions #99
-
I've trying to do regressions following the code from the tutorial, but the predicted values for my dataset seem to all very close to 0 (the actual values are in the range 50-3000). I suspect that this is not converted back from normalized values. Did I miss any important steps? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
PyTorch Tabular does not use any target transformation by default. There is a way to use a target_transformer in the What might be happening in your case can be that the model might be struggling to capture the scale of the data. There are two things you can try:
|
Beta Was this translation helpful? Give feedback.
PyTorch Tabular does not use any target transformation by default. There is a way to use a target_transformer in the
fit
method, but if you do that, they are reverse transformed before reporting the predictions.What might be happening in your case can be that the model might be struggling to capture the scale of the data. There are two things you can try:
target_range
parameter inModelConfig
and specify the range you expect your output to be in. This uses a sigmoid layer to force the output to be in between the given range. But this is only a good way if you expect something similar to a normal distribution for your target.