Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallelised optimizeALS #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

2 participants