Python Forum
Join Predicted values with test dataset
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Join Predicted values with test dataset
#1
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)
Reply


Messages In This Thread
Join Predicted values with test dataset - by bhuwan - Mar-25-2019, 04:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to test likelihood hypothesis on dataset? iiiioooo 0 933 Apr-18-2022, 01:00 PM
Last Post: iiiioooo
  Graph that shows predicted vs true values donnertrud 1 2,595 Jan-28-2020, 07:47 PM
Last Post: jefsummers
  Partitioning when splitting data into train and test-dataset Den0st 0 2,003 Dec-07-2019, 08:31 PM
Last Post: Den0st
  spread values of dataset equally over fixed number of bins moose_man 3 2,564 Oct-30-2019, 07:41 PM
Last Post: ichabod801
  How many unique values of quality are in this dataset? Jack_Sparrow 1 3,169 May-20-2018, 01:59 PM
Last Post: volcano63

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020