Giter Club home page Giter Club logo

linear-regressor's Introduction

linear-regressor

Simple linear regression program which builds linear regression model and then predicts on the input data.

Language: Python

Version: Python3.x

Python libraries required:

  1. Numpy
  2. Pandas
  3. Matplotlib
  4. Sklearn

Instructions:

  1. Put the preprocessed, clean, without-null training data in input.csv and output.csv files located in train folder. The files should be in csv format and first line should contain the name of the variables. The first column of both the files should contain indices so they should not have any variable. The first value of the first line(containing name of variables) in both files is empty.
  2. Put the test or to-predict input data in the input.csv file located in test folder in the same format the input.csv file is in train folder.
  3. Run main.py and then the program would predict the output and save as output.csv in test folder in the same format other csv files are in.

The code in linear_regression.py is well documented and we can set the hyperparameters there while training. In performance metrics, root mean squared error and coefficient of determination are used. They are used to evaluate the model.

linear-regressor's People

Contributors

suraj1127 avatar sudarshanregmi avatar

Stargazers

Suman Chaulagain avatar

Watchers

James Cloos avatar  avatar

Forkers

premkarki47

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.