saraswatmks / superml

Build machine learning models in R like using python's scikit-learn library
https://saraswatmks.github.io/superml/
GNU General Public License v3.0
32 stars 8 forks source link

use rcpp to build matrix #27

Closed saraswatmks closed 4 years ago

saraswatmks commented 4 years ago

Use rcpp to build count matrix, 10x faster than before now.

saraswatmks commented 4 years ago

Also, deprecate parallel flag in this commit based on following results;

Unit: milliseconds
         expr       min        lq      mean    median       uq       max neval
          cpp  5.650388  7.459932  9.440925  8.785073 10.86501  24.31161   100
         base 29.024448 36.685492 42.911634 40.188746 44.62791 140.26021   100
 cpp_parallel 12.583739 14.520927 16.645959 15.958374 17.78588  36.62999   100