Skip to content

hoangdzung/LR_MPI

Repository files navigation

LR_MPI

Linear Regression and Logistic Regression implementation using C/OpenMPI

How to run

The input files are hardcode in logist.c and linear.c, which are linear.train, linear.test, logits.train, logits.test

Input file format

Number-of-examples(N) Data-dim(D)
X1_1 X1_2 ... X1_(D-1) Y1
...
XN_1 XN_2 ... X_(D-1) YN

Linear Regression

Compile and run:

./linear.sh

Logistic Regression

Compile and run:

./logist.sh

Reference

Algorithm in matrix form:

  1. Linear Regression
  2. Logistic Regression

About

Linear Regression and Logistic Regression implementation using MPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published