Giter Site home page Giter Site logo

fengyin123 / machine-learning-assignments Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wrymax/machine-learning-assignments

0.0 2.0 0.0 21.44 MB

The assignment implementation of Coursera 「Machine Learning」

License: MIT License

MATLAB 100.00%

machine-learning-assignments's Introduction

machine-learning-assignments

This repository includes the assignments of Machine Learning course in Cousera, mainly implemented in Matlab.

All of them obtains score 95 - 100.

Week 2. Linear Regression

Week 2 assignments mainly works on linear regression algorithms, which leverage 「Gradient Descent」we implement ourselves in the code.

Week 3. Logistic Regression

Week 3 assignments mainly works on logistic regression algorithms. Instead of implementing the gradient descent function myself, I leverage「fminunc」method in Matlab, which gives an efficient implementation for gradient descent.

Week 4. Multi-Class classification and Neural Networks

In this week, we approached the exiciting「Neural Network」to implement classification algorithms. In the code, we implement a multi-class classification algorithm and One-vs-All algotithm.

Week 5. Neural Networks Learning

To enhance and optimise of Neural Network, we introduce「Feed Forward」to compute the prediction of traning set X, based on which we can compute cost function J of theta.

Also we leverage「Back Propagation」method to compute Gradient of J(theta). To verify it, we should use「Gradient Checking」techniques, which comes for numeric estimate, to make sure that the gradient is accurate.

To put it together, the code in ex4.m shows complete process of training a Neural Network:

  • Randomly initialize weights;
  • Implement forward-propagation to get h(theta);
  • Implement code to compute cost function J(theta);
  • Implement back-propagation to compute partial derivative of J(theta), which is the gradient used for gradient descent algorithm;
  • Regularize the gradient of J(theta);
  • Start training by fmincg.

Week 6. Neural Networks Practical Stuff

This week, we implement some practical code for neural network.

Week 7. Support Vector Machine

Here simply implements an spam email classifier by SVM.

Week 8. K-Means and PCA

Here simply implements K-means and PCA algorithms.

Week 9. Recommender Systems

  • Anomaly detection
  • Recommender System

machine-learning-assignments's People

Contributors

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