from sklearn.metrics import accuracy_score
accuracy_score(y_true, y_pred)
I believe this code will return the accuracy of our predictions. However, I am comparing predicted and actual values of continuous values and I believe that most of them are not going to be exactly same.
Should I fit the test set values and plot the predicted values to get the R-squared?
Can anyone please advise me on how to measure the accuracy of predictions in the case of continuous variables?