Re: [R-pkg-devel] R package development using GPU based on R package OpenCL

2022-10-11 Thread Martin Morgan
I�m not particularly experienced with this but wrote a �proof-of-concept� skeleton of a package at https://github.com/mtmorgan/ocl . The basics are * Import OpenCL in the DESCRIPTION file * Write OpenCL scripts in inst/ (dnorm implemented in OpenCL) * Use the helper function in R/ocl

[R-pkg-devel] R package development using GPU based on R package OpenCL

2022-10-11 Thread Quirin Stier
Dear members, I have difficulties packing my OpenCL functions together as a complete R package. I did not find any exemplary R package building upon the R OpenCL Package. Currently I can only run the OpenCL functions as was presented by the OpenCL examples of the OpenCL package itself. So, assumi

Re: [R-pkg-devel] Identify Original Column Names of Model Matrix

2022-10-11 Thread Ivan Krylov
On Mon, 10 Oct 2022 08:00:04 + Dario Strbenac wrote: > It requires input data to be in one-hot encoding, which is created by > Matrix::sparse.model.matrix. For further analysis, such as variable > importance, is there a way to identify which original feature each > column of a sparse.model.ma