SciRuby / daru

Data Analysis in RUby
BSD 2-Clause "Simplified" License
1.03k stars 139 forks source link

Subsampling many data structures at once #435

Open tramuntanal opened 6 years ago

tramuntanal commented 6 years ago

Hi,

In python's scikit-learng there's a resample util to subsample the same random elements in many data structures at once, i.e. extract the same random indexes from the data structures: http://scikit-learn.org/stable/modules/generated/sklearn.utils.resample.html#sklearn.utils.resample

Is there some equivalent in Daru or one library that can be used for this purpose?

zverok commented 6 years ago

Unfortunately, Daru is not that mature to the moment :(

tramuntanal commented 6 years ago

I'm doing a mini Deep Neural Nework framework in Ruby to learn how this frameworks work. I have implemented a Resampler just for my needs:

Do you think that an evolution of this may be merged into Daru? I'd be glad to do the work following your guide if you feel it can be useful.