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
#5
(Mar-27-2019, 02:21 AM)scidam Wrote:
(Mar-26-2019, 03:54 PM)bhuwan Wrote: By doing above concat, does each row of y_test and y_pred align in the same order as in x_test?

The .predict doesn't change the order of classified cases. Let X_test.shape = (m, n), then
y_test.shape = n (preserving order is guaranteed by train_test_split in this case); finally, y_pred is produced by .predict, this function retains the order of classified items (rows of X_test).

Thank you so much, this is what I needed to confirm.
Reply


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

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to test likelihood hypothesis on dataset? iiiioooo 0 913 Apr-18-2022, 01:00 PM
Last Post: iiiioooo
  Graph that shows predicted vs true values donnertrud 1 2,578 Jan-28-2020, 07:47 PM
Last Post: jefsummers
  Partitioning when splitting data into train and test-dataset Den0st 0 1,989 Dec-07-2019, 08:31 PM
Last Post: Den0st
  spread values of dataset equally over fixed number of bins moose_man 3 2,536 Oct-30-2019, 07:41 PM
Last Post: ichabod801
  How many unique values of quality are in this dataset? Jack_Sparrow 1 3,152 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