-
Notifications
You must be signed in to change notification settings - Fork 18
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
Assistance with Predictions Using PLNmodels 1.2.1 #139
Comments
Hi @ivangalvan , (please @mahendra-mariadassou correct of complete my answer if needed) Sorry it took us so long to answer. Here is a short reminder about the mathematical rational of the fitted and predict function for the PLN model. The fitted value When we predict from new data (ie new Indeed, a part of the variability coming from the response part is unknown , because we do not observe So the discrepancy that you observed is the part of variability explained by the term
If you give the response on top of the new data, we recover a perfect estimation (outputs of
But anyway, to answer your question, in a train/test context, since data is supposed to be relatively homogeneous, you are using it the right way. You just forget the "type = response" argument (otherwise it is sending back the link, that is where we try to estimate missing part of the variance And if your test/train folds are homogeneous enough, the additional part from coming from Hope that make sense. |
Hello,
I am encountering differences in predictions when using the predict() function compared to the myPLN$fitted object. Here is a small reproducible example:
I would like to make predictions on both training and test sets and ensure that I am correctly using the predict() function for the test set. Could you please assist me with this issue? I am currently using PLNmodels_1.2.1.
Thank you for your help.
Best regards,
Ivan
The text was updated successfully, but these errors were encountered: