/LinearRegression

Simple and Multivariate Linear Regression using OLS and Gradient Descent Optimizer

Primary LanguagePython

Linear Regression Model

Univariate and multivariate linear regression model using OLS and gradient descent optimizer

Description

This code checks a predefined directory and automatically decides whether to create a univariate regression model or a multi variate regression model.

This project is divided in 3 files:

  • Model.py - checks predefined directory (set on main), performs data pre-processing
  • Regression.py - Analyses the data and decides which sub type of regression should call
  • main.py - Main file

Getting Started

To run the project:

python main.py

Prerequisites

Packages used:

  • Numpy
  • Pandas
  • os
  • ntpath
  • matplotlib
  • unittest

Running the tests

python TestMethods.py

Built With

  • Python 3

  • PyCharm 2017.03

Future Work

  • Folder watching - Using the "watchdog" package, check periodically for new files in the data directory
  • Extend to other models (classification, etc)
  • Extend to other linear regression models

Authors

  • Vasco Fernandes

License

This project is licensed under the MIT License - see the LICENSE.md file for details