Code Monkey home page Code Monkey logo

linear-regression-sklearn's Introduction

linear-regression-sklearn

Submission for "How to Make a Prediction - Intro to Deep Learning #1' by Siraj Raval on YouTube

Overview

The notebook is split into two sections:

  • 2D linear regression on a sample dataset [X, Y]
  • 3D multivariate linear regression on a climate change dataset [Year, CO2 emissions, Global temperature].

Because of the small amount of data, and the random 10% of data chosen for testing, the scores have high variance.

2D Linear Regression 3D Multivariate Linear Regression
R2 (Score): 0.651237006724 R2 (Score): 0.968933216107

Usage

Run the jupyter notebook linear_regression.ipynb

##Challenge

The challenge for this video is to use scikit-learn to create a line of best fit for the included 'challenge_dataset'. Then, make a prediction for an existing data point and see how close it matches up to the actual value. Print out the error you get.

Bonus points if you perform linear regression on a dataset with 3 different variables

Dependencies

  • matplotlib
  • pandas
  • numpy
  • seaborn

linear-regression-sklearn's People

Watchers

 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.