Python Forum
How to sample data from training data set?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to sample data from training data set?
#1
Hi all,

I have split my data randomly where 2/3 of my data is kept for training while 1/3 is kept for testing. I have to now determine the mean error rate over 150 different random samples from my training data and plot a confusion matrix for one sample.

My code works up to making the predictions over the whole training data but I am not sure how to extract 150 different random samples and plot a confusion matrix for one sample.

Any ideas?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help with to check an Input list data with a data read from an external source sacharyya 3 403 Mar-09-2024, 12:33 PM
Last Post: Pedroski55
  Write sql data or CSV Data into parquet file mg24 2 2,420 Sep-26-2022, 08:21 AM
Last Post: ibreeden
  Error doing CV for training and testing datasets Z47 2 988 Aug-17-2022, 08:41 PM
Last Post: Z47
  Load multiple Jason data in one Data Frame vijays3 6 1,536 Aug-12-2022, 05:17 PM
Last Post: vijays3
  Issue in changing data format (2 bytes) into a 16 bit data. GiggsB 11 2,655 Jul-25-2022, 03:19 PM
Last Post: deanhystad
  Convert nested sample json api data into csv in python shantanu97 3 2,808 May-21-2022, 01:30 PM
Last Post: deanhystad
  Adding shifted data set to data set xquad 3 1,499 Dec-22-2021, 10:20 AM
Last Post: Larz60+
  Looking for data/info on a perticular data-proccesing problem. MvGulik 9 3,850 May-01-2021, 07:43 AM
Last Post: MvGulik
  How to filter out Column data From Multiple rows data? firaki12345 10 5,093 Feb-06-2021, 04:54 AM
Last Post: buran
  how to print all data from all data array? korenron 3 2,458 Dec-30-2020, 01:54 PM
Last Post: korenron

Forum Jump:

User Panel Messages

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