Skip to content

Parallelised optimizeALS#90

Open
NathanSkene wants to merge 1 commit intowelch-lab:masterfrom
NathanSkene:master
Open

Parallelised optimizeALS#90
NathanSkene wants to merge 1 commit intowelch-lab:masterfrom
NathanSkene:master

Conversation

@NathanSkene
Copy link
Contributor

Hi,

The loop over reps in optimizeALS seemed like a natural place to parallelise so I've cut out some of the code into a seperate function, and converted the loop to mclapply. Should save a considerable amount of time on large dataset runs. I've tested on some datasets and seems to work as expected still. If num.cores is set to 1 then the behaviour shouldn't change at all (and that is the default) but for anyone with a multicore machine they can use this instead.

@combiz
Copy link

combiz commented Feb 19, 2020

The multicore functionality enabled by this PR would be a very welcome enhancement to Liger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants