sample from data according to a class with no replacement
Mostrar comentarios más antiguos
Lets say that I have a matrix n*m where n represented the instances while m representing the attributes. I have another column vector which is n*1 where n represents the classes corresponding to the enstances of the matrix n*m. Now, I want to sample from the matrix n*m based on the classes vector n*1. So, that for instance I want K instances with no replacement belonging to the class L. Any one could help me in that.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Library Development 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!