Skip to content

MeSayan/Multi-threaded-Training-Logistic-Regression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Multi-threaded training of Logistic Regression Model using Stochastic Gradient Descent

Dataset used - covtype.binary

Approach 1

In this approach the threads used are:

  • 1 - data reading thread, which takes a data reading request from other gradient update threads and reads a minibatch of data to a buffer in memory.

  • A pool of k - gradient update threads which takes a minibatch from the memory and computes the update to parameters.

  • 1 - Main thread which coordinates the updates from various gradient update threads.

Approach 2

In this approach the threads used are:

  • A pool of k – data reading and gradient update threads which reads a minibatch of data to a buffer in memory and computes the update to parameters. We call these worker threads.

  • 1 - Main thread which coordinates the updates from various worker threads.

Results

Comparing execution times of Approach 1 & 2

About

Multi-threaded training of logistic regression

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages