covartech / PRT

Pattern Recognition Toolbox for MATLAB
http://covartech.github.io/
MIT License
145 stars 70 forks source link

Bootstrap without replacement #58

Open cratto opened 7 years ago

cratto commented 7 years ago

The help for prtDataSetClass.bootstrap says it uses sampling with replacement. I would like to randomly subsample my training data without getting redundant observations. Does that functionality exist in the PRT?

kennethmorton commented 7 years ago

Surprisingly it didn't. So I added it.

In the devel branch there is new method of prtDataSetBase, bootstrapUnique. This should do what you need. It has been tested but hasn't been run through the ringer a lot. Let me know if you have any issues.