Giter Site home page Giter Site logo

davidtanluc / mlrefined Goto Github PK

View Code? Open in Web Editor NEW

This project forked from michaelreinhard/mlrefined

0.0 3.0 0.0 11.25 MB

Python and MATLAB code examples and demos from the textbook "Machine Learning Refined" (Cambridge University Press)

Home Page: www.mlrefined.com

MATLAB 3.03% Python 6.61% Jupyter Notebook 90.37%

mlrefined's Introduction

Machine Learning Refined demo code examples

In this repository you can find demo code written in Python and MATLAB for Chapters 2 - 8 from the textbook Machine Learning Refined. You can download this chapter by visiting www.mlrefined.com

Current code demos include:

Chapter 2 demos on gradient descent and Newton's method

Below is a video tutorial illustrating how gradient descent works via use of the demo code (convex_grad_surrogate and nonconvex_grad_surrogate, which you may find here) - these illustrate the basic concepts underlying gradient descent applied to minimizing both convex and nonconvex functions. Some principles from the chapter are briefly described before jumping into the code.

Demo Doccou alpha

Below is a video tutorial illustrating how Newton's method works via use of the demo code (convex_newton_surrogate and nonconvex_newton_surrogate, which you may find here) - these illustrate the basic concepts underlying Newton's method applied to minimizing both convex and nonconvex functions. Some principles from the chapter are briefly described before jumping into the code.

Demo Doccou alpha

Chapter 3 demos on regression and L2 regularization

Below is a video tutorial illustrating how L2 regularization convexifies nonconvex cost functions, thereby making minimization of such functions easier. The code (l2reg_logistic, which you may find here) shows the result of applying L2 regularization to a nonconvex form of logistic regression on a simple dataset, as well as the resulting convexificaation of this cost function due to regularization. Again, some principles from the chapter - which is available for download at www.mlrefined.com - are briefly described before jumping into the code.

Demo Doccou alpha

Simple linear regression on an important dataset

alt tag

Chapter 4 demos on two class logistic regression and support vector machines, as well as multi-class one-versus-all and multiclass softmax / logistic regression

Two class classification with logistic regression:

alt tag

Multiclass classification with One-versus-All classification

alt tag

mlrefined's People

Contributors

neonwatty avatar

Watchers

James Cloos avatar David Tan 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.