Python Forum

Full Version: How to sample data from training data set?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?