Alternatives to 'datasample'
Mostrar comentarios más antiguos
Hi!
I'm looking for an alternative to the datasample function. It's a part of the Statistics & Machine Learning toolbox. Any ideas? I want to be able to sample rows of data from tables and matrices and would like to have the choice of sampling with/without replacement.
Thanks for your ideas!
5 comentarios
Adam Danz
el 22 de Ag. de 2020
Are you sampling with replacement or without replacement?
Veena Chatti
el 22 de Ag. de 2020
Veena Chatti
el 22 de Ag. de 2020
Editada: Veena Chatti
el 22 de Ag. de 2020
Adam Danz
el 22 de Ag. de 2020
randperm samples without replacement.
To sample with replacement, use randi.
Veena Chatti
el 26 de Ag. de 2020
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Text Data Preparation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!