Code Monkey home page Code Monkey logo

courseramachinelearning's Introduction

Machine Learning By Prof. Andrew Ng ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸโญ

This page continas all my coursera machine learning courses and resources ๐Ÿ“– by Prof. Andrew Ng ๐Ÿ‘จ

Table of Contents

  1. Breif Intro
  2. Video lectures Index
  3. Programming Exercise Tutorials
  4. Programming Exercise Test Cases
  5. Useful Resources
  6. Schedule
  7. Extra Information
  8. Online E-Books
  9. Aditional Information

Breif Intro

The most of the course talking about hypothesis function and minimising cost funtions

Hypothesis

A hypothesis is a certain function that we believe (or hope) is similar to the true function, the target function that we want to model. In context of email spam classification, it would be the rule we came up with that allows us to separate spam from non-spam emails.

Cost Function

The cost function or Sum of Squeared Errors(SSE) is a measure of how far away our hypothesis is from the optimal hypothesis. The closer our hypothesis matches the training examples, the smaller the value of the cost function. Theoretically, we would like J(ฮธ)=0

Gradient Descent

Gradient descent is an iterative minimization method. The gradient of the error function always shows in the direction of the steepest ascent of the error function. Thus, we can start with a random weight vector and subsequently follow the negative gradient (using a learning rate alpha)

Differnce between cost function and gradient descent functions

Cost Function Gradient Descent

            function J = computeCostMulti(X, y, theta)
                m = length(y); % number of training examples
                J = 0;
                predictions =  X*theta;
                sqerrors = (predictions - y).^2;
                J = 1/(2*m)* sum(sqerrors);
            end
            

            function [theta, J_history] = gradientDescentMulti(X, y, theta, alpha, num_iters)    
                m = length(y); % number of training examples
                J_history = zeros(num_iters, 1);
                for iter = 1:num_iters
                    predictions =  X * theta;
                    updates = X' * (predictions - y);
                    theta = theta - alpha * (1/m) * updates;
                    J_history(iter) = computeCostMulti(X, y, theta);
                end
            end
            

Bias and Variance

When we discuss prediction models, prediction errors can be decomposed into two main subcomponents we care about: error due to "bias" and error due to "variance". There is a tradeoff between a model's ability to minimize bias and variance. Understanding these two types of error can help us diagnose model results and avoid the mistake of over- or under-fitting.

Source: http://scott.fortmann-roe.com/docs/BiasVariance.html

Hypotheis and Cost Function Table

Algorithem Hypothesis Function Cost Function Gradient Descent
Linear Regression linear_regression_hypothesis linear_regression_cost
Linear Regression with Multiple variables linear_regression_hypothesis linear_regression_cost linear_regression_multi_var_gradient
Logistic Regression logistic_regression_hypothesis logistic_regression_cost logistic_regression_gradient
Logistic Regression with Multiple Variable logistic_regression_multi_var_cost logistic_regression_multi_var_gradient
Nural Networks nural_cost

Regression with Pictures

Video lectures Index

https://class.coursera.org/ml/lecture/preview

Programming Exercise Tutorials

https://www.coursera.org/learn/machine-learning/discussions/all/threads/m0ZdvjSrEeWddiIAC9pDDA

Programming Exercise Test Cases

https://www.coursera.org/learn/machine-learning/discussions/all/threads/0SxufTSrEeWPACIACw4G5w

Useful Resources

https://www.coursera.org/learn/machine-learning/resources/NrY2G

Schedule:

Week 1 - Due 07/16/17:

Week 2 - Due 07/23/17:

Week 3 - Due 07/30/17:

Week 4 - Due 08/06/17:

Week 5 - Due 08/13/17:

Week 6 - Due 08/20/17:

Week 7 - Due 08/27/17:

Week 8 - Due 09/03/17:

Week 9 - Due 09/10/17:

Week 10 - Due 09/17/17:

Week 11 - Due 09/24/17:

  • Application example: Photo OCR - pdf - ppt

Extra Information

Online E Books

Aditional Information

๐Ÿ’ฅ Course Status ๐Ÿ‘‡

coursera_course_completion

Links

Statistics Models

NLP forums

courseramachinelearning's People

Contributors

mihirgokani007 avatar

Watchers

James Cloos 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.