Mar-25-2019, 04:21 PM
I am a beginner in machine learning and write my first machine learning code. I have trained a model and got y_pred. Now I want to join x_test with y_pred so that I can compare the predicted values with the real values. I noticed that the indices for x_test are different than y_pred, so how can I join them and make sure that the y_pred values are aligned with the respective indices of x_test.
y_pred = predict_classifier(clf, X_test, y_test)