Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Parallel execution of loop in R

$
0
0

@Rishabh0709 wrote:

Hi All,
I am working on an assignment in R, where I have to run logistic regression for many combination(could be close to 1lakh) .
Currently , the execution time for the loop for 28k records is around 6hrs in R.
I am using “for loop” for multiple iterations.
I cannot paste the code here , but the logic is as follows:
I have 28k different combinations of independent variables. For each combination, I am running glm function , computing AUC, GINI, KS, VIF, Factor Weight and other model coefficients. After that I am appending records for each combination into data frame.
I tried using foreach and doParallel in order to reduce the execution time , but I didn’t succeed.
Is there any way to reduce the execution time of this loop , or is there any functionality like parallel execution in R , to reduce the execution time?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles