Wednesday, January 18, 2017

Published 13:32 by with 5 comments

Introduction to Machine Learning

What is Machine Learning?

Machine Learning is a branch of Computer Science that deals with making a machine (i.e. computer)  learn without explicitly being programmed. Essentially, it is a method of teaching computers to make and improve predictions or patterns based on data.

A common example used to explain Machine Learning is ‘Digit Recognition’ - where a machine is taught to understand how different digits look like (10 of them - zero included) using images that contain handwritten single digit. The algorithm is then made to ‘recognize’ new set of images of handwritten digit.

Machine Learning can be broadly classified into the following categories

Supervised Learning

In Supervised Learning, the machine is taught using example inputs and their corresponding outputs. The objective of the machine is to learn the “rule” that derives the output (for the given set of input).

Digit Recognition is an example for Supervised Learning as the labelled example data (handwritten image and the corresponding digit) is used to train the machine. The objective of this method is to Predict the output given an unknown/new input data.

Unsupervised Learning

In Unsupervised Learning, the machine is *not* provided with labelled examples and the objective is to identify hidden patterns, outlier detection, clustering, etc.

An everyday example for Unsupervised Learning is Google News - news articles of same/similar content are sourced from various sites and grouped together.

Reinforcement Learning

Reinforcement Learning is where a machine operates in a dynamic environment and makes decisions and it is penalised or awarded for making such decision periodically. The objective of this method is to maximize the performance or efficiency of the whole system.

Self driving cars or computers playing games against human players are notable examples of Reinforcement Learning.

Footnote: As humans, we inherently perform all the three ways of learning and here are the instances of them

  • Humans learning to identify shapes, colors, alphabets, etc are Supervised as we are taught with prior examples


  • Doctors diagnosing medical issues, identification of bugs in software, etc are examples of humans doing anomaly detection. Grouping items based on similarities is another example of humans doing clustering. For the same sample items, the groups/clusters can be very different for different humans


  • The process of humans learning to speak a language is an example of Reinforcement Learning where based on the reaction or response of the other person(s) involved (and over a period of time) the 
    mastery on the language improves



Why Machine Learning?

Because of its application in the real world.

Following are some of the use cases for Machine Learning

  • Fraud Detection
  • Sentiment Analysis
  • Recommendation Engine
  • Self-Driving Cars

Why now?

As collection and processing of data becomes cheaper, applying Machine Learning becomes more and more practical and effective. For some organizations, Machine Learning applications are the game changer. Examples are Amazon, Google, Netflix, etc

Steps involved in Machine Learning

  • Collection of Data
  • Preparation of Data
  • Building (or Training) a Model
  • Evaluating the Model
  • Improving the Performance or efficiency




      edit

5 comments:

  1. Thanks for this information. it explains the basics of ML and i looking forward to have the code how it works for each category.

    ReplyDelete
  2. It's very nice and easy to understand...Thanks for the post...

    ReplyDelete
  3. I found this page really useful. Thanks for the post

    ReplyDelete
  4. Siva,

    Thanks for taking time to read and to comment. I do plan to elaborate all the types of learning (with detailed examples using few algorithms/approaches).

    Thanks for asking and please stay tuned.

    Best!

    ReplyDelete