Linear Regression and Logistic Regression implementation using C/OpenMPI
The input files are hardcode in logist.c and linear.c, which are linear.train, linear.test, logits.train, logits.test
Number-of-examples(N) Data-dim(D)
X1_1 X1_2 ... X1_(D-1) Y1
...
XN_1 XN_2 ... X_(D-1) YN
Compile and run:
./linear.shCompile and run:
./logist.shAlgorithm in matrix form: