Linear regression demo made with C standard & POSIX libs.
Clone:
git clone https://github.com/SuXYIO/LRDemo
Compile:
cd LRDemo
make
Not supported yet.
With versions including and after commit 7bbfc08c43ca8c24be9d7da5e21884a420c4fa7a
, the program uses POSIX libs, which vanilla Windows doesn't support. The versions before might have a chance of working on Windows.
Might work if using methods like MinGW to use POSIX standards on Windows.
./LR.out [options]
See manual:
./LR.out -h
- ./stat/plot.py
A simple plot python program for plotting the CSV formatted file that can be outputted by LR using-f
option (see Args).
Note that it needsmatplotlib
andpandas
lib to work.
More info in plot.py's first mutiline comment. - ./stat/mutiplot.py
A version of plot.py, but shows two set of CSV formatted file merged into one plot, doesn't show gradient information.
More info in mutiplot.py's first mutiline comment.
Loss function: MSE
Regression algorithm: Gradient decent
Random algorithm: Box-muller normal distro
f(x): Training function, for training
g(x): Data function, for generating training data
A project to help improve C programming skills and understand neural networks better.