Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

Cleanup Hogwild trainer #176

Closed
wants to merge 1 commit into from

Conversation

geof90
Copy link
Contributor

@geof90 geof90 commented Dec 29, 2018

Summary:
Fix possible race conditions in Hogwild trainer.
We join all the parallel processes after traning every epoch, and do evaulation after joining, so that we dont encounter races during evaluation and model selection.

This implementation is similar to what sklearn is doing: https://github.com/srome/sklearn-hogwild/blob/master/hogwildsgd.py#L78

Differential Revision: D13426423

Summary:
Fix possible race conditions in Hogwild trainer.
We join all the parallel processes after traning every epoch, and do evaulation after joining, so that we dont encounter races during evaluation and model selection.

This implementation is similar to what sklearn is doing: https://github.com/srome/sklearn-hogwild/blob/master/hogwildsgd.py#L78

Differential Revision: D13426423

fbshipit-source-id: 8b021da032419cea5d872534fd28c98b8dfeb7f8
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Dec 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants