custom gradient descent in Rcpp
Closed this issue · 1 comments
nhejazi commented
Currently (as of ebf0084), the LASSO fitting step of the HAL algorithm is a call to the cv.glmnet
function from the R package glmnet
. The results of simple benchmarks indicate that the vast majority of time spent on execution of a call to hal9001::fit_hal
is spent in the cv.glmnet
step (in fact, up to 95% of the total execution time).
Re-writing the LASSO in C++ with a Rcpp wrapper is a simple solution to this problem.