In sklearn regression, is there a command to return residuals for all records?
One option is to use fit() to get predictions and residual is simply the difference between the actual value and predictions.
I know this is an elementary question, but I'm not a python programmer. I have an app that is using the sklearn kit to run regressions on a python server.
Is there a simple command which will return the predictions or the residuals for each and every data record in the sample?