Skip to content

SuXYIO/LRDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LRDemo

Intro

Linear regression demo made with C standard & POSIX libs.

Install

Linux/Unix:

Clone:

git clone https://github.com/SuXYIO/LRDemo

Compile:

cd LRDemo
make

Windows:

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.

Usage

./LR.out [options]

Args

See manual:

./LR.out -h

Other

  1. ./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 needs matplotlib and pandas lib to work.
    More info in plot.py's first mutiline comment.
  2. ./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.

Technical Details

Algorithms

Loss function: MSE
Regression algorithm: Gradient decent
Random algorithm: Box-muller normal distro

Functions

f(x): Training function, for training
g(x): Data function, for generating training data

Purpose

A project to help improve C programming skills and understand neural networks better.

About

Linear regression demo using C.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published