Giter Club home page Giter Club logo

ft_linear_regression's Introduction

ft_linear_regression

Data Science: Linear Regression

Really hope I ACTUALLY finish this project :(. I did it! :)

Don't really know what I'm doing with this one but the plan is to accelerate my data science learning using the ft_linear_regression and hopefully the DSLR (Datascience X Logistic Regression) modules at 42. Found one other person doing the project on github. This is the first project in the deep learning branch at 42.

Linear Regression

  • Linear Regression is a topic in statistics that is used as a predictive analysis tool.
  • It aims to form relationships between data points and:
  1. determining the strength of predictors,
  2. forecasting an effect,
  3. trend forecasting.

Objective

This project aims to predict the price of a car based on it's mileage.

Topics covered

  • Statistics
  • Predictive Analysis
  • Regression Modelling

Python Dependencies

  • pandas, plotly, math,
  • tqdm (for progress bar in terminal) tqdm

Usage

  1. Start the trainer. Run python .\trainer.py .\dataset_00.csv, where .\dataset_00.csv is the training dataset in csv format:
mileage price
240000 3650
139800 3800
150500 4400
  1. Start the predictor. Run python .\predictor.py <SAMPLE_MILEAGE>, where <SAMPLE_MILEAGE> is the mileage is a number (unsigned).

Result

This is a sample data set where learning rate = 0.5, iterations = 200

Resources

DataSci, My repo for all python and data science learning

ft_linear_regression's People

Contributors

luyandamncube avatar

Stargazers

 avatar Chien-Chi Kao avatar

Watchers

James Cloos avatar  avatar

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.