Giter Site home page Giter Site logo

machine_learning_assignment_four's Introduction

machine_learning_assignment_four

Assignment 4

A group of 20 students studied 0 to 6 hours for the exam. Some passed and others failed. Results are given below (Data is taken from Wikipedia).

Student Hours Studied - x Result (0 โ€“ fail, 1 โ€“ pass) - y
1 0.5 0
2 0.75 0
3 1.00 0
4 1.25 0
5 1.50 0
6 1.75 0
7 1.75 1
8 2.00 0
9 2.25 1
10 2.50 0
11 2.75 1
12 3.00 0
13 3.25 1
14 3.50 0
15 4.00 1
16 4.25 1
17 4.50 1
18 4.75 1
19 5.00 1
20 5.50 1
  1. Determine the optimal linear hypothesis using linear regression to predict if a student passes or not based on the number hours studied.
  2. Determine the optimal logistic hypothesis using logistic regression to predict if a student passes or not based on the number hours studied.
  3. Plot both hypothesis function 0 < x < 6. Compare and explain the two results obtained.
  4. Develop a logistic regression-like algorithm for the following cost function.

Y = 1 - Cost function goes from 100 to 0 linearly as hypothesis function goes from 0 to 1

Y = 0 - Cost function goes from 0 to 100 linearly as hypothesis function goes from 0 to 1

Compare results with those of the standard logistic algorithm.

machine_learning_assignment_four's People

Contributors

neighbor983 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.