Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why do I get very big (or near) y_pred value for regression tasks? #16

Open
querbesd opened this issue Jul 30, 2024 · 0 comments
Open

Comments

@querbesd
Copy link

querbesd commented Jul 30, 2024

Hello,

First of all, congrats for making this project open-source and serving as food for thoughts for similar projects.

In this context, I tried to replicate the same architecture for a regression task at the beginning of the customer journey (predicting ltv after the first purchase).

Unfortunately, with my training set (own project) which consists of 20k rows, it seems my model's weights are too big as I get big y_pred values on my test set. I don't face this issue on the kaggle dataset.

My features are scaled and I also tried l1 l2 regul + dropout on my layers but it's not enough. My guess is my dataset is too small and the model is too sensitive to noise.

My question: is there something I can amend in the loss function to limit this issue?

PS: Editing the loss function using the mode instead of the mean of the log normal distribution function as described here helped me to get more consistant pred values (it removed inf). However, this is still far away from what I can get with a more traditional loss function (mae or mse).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant