Continuous variable not supported in confusion matrix
You are looking at a regression model, which gives you a continous output (not classification). So when you run confusion_matrix (y_test, y_pred) it will throw the ValueError because it expected class predictions, not floating point numbers. Are you trying to predict classes, or really just a number output?