14
Machine Learning VMLW01

Workshop on Machine Learning VMLW011

Embed Size (px)

Citation preview

Page 1: Workshop on Machine Learning   VMLW011

Machine Learning VMLW01

Page 2: Workshop on Machine Learning   VMLW011

What are we covering today ? • What is Machine Learning ? • Types of Machine Learning• Supervised Learning Algorithms• Unsupervised Learning Algorithms• Neural Networks – Deep Learning• Feature Scaling• Model Selection

Page 3: Workshop on Machine Learning   VMLW011

What is Machine learning ?

Definition: A computer program is said to learn from experience E with respect to some class of tasks T and performance measure P, if its performance at tasks in T, as measured by P, improves with experience E.

Examples:Database mining – Large Datasets, Medical records, Web click data etc Applications - Autonomous Helicopter, handwriting recognition, NLPRecommendation Systems – Amazon , Netflix Replicating Human Learning

Page 4: Workshop on Machine Learning   VMLW011

Real world examples

IBM Watson – AI

Self Driving Cars

Satellite Imaging Agriculture

License Plate

Page 5: Workshop on Machine Learning   VMLW011

Types Of Machine learning Algorithms

• Supervised Learning• Unsupervised Learning• Others – Reinforcement learning, Recommender systems

Definition & ExamplesMixed set of FruitsRegression and Classification ProblemsGoogle News, Market Segmentation

Page 6: Workshop on Machine Learning   VMLW011

Supervised Learning• Linear Regression - Model Representation

• m = No of Training examples• x = input variables or features• y = output variable or target variable• (x^i,y^i) – ith training example• Hypothesis • Cost Function

Page 7: Workshop on Machine Learning   VMLW011

Supervised Learning• Linear Regression Gradient Decent Algorithm

• Start with one random theta and keep changing it till the cost is minimum

Page 8: Workshop on Machine Learning   VMLW011

Supervised Learning• Classification – Logistic Regression

• (Sigmoid or Logistic function of z)

• ( y = 0 or 1 h(x) is probability of y being 1 )

Page 9: Workshop on Machine Learning   VMLW011

Feature Scaling & Learning Rate

(max – min, range or SD etc for normalizing)

How to pick right alpha (learning rate)Very large vs Very small , (take multiples of 3 , 10 etc)

Page 10: Workshop on Machine Learning   VMLW011

Unsupervised Learning• Cluster Analysis - K-Means Algorithm

Page 11: Workshop on Machine Learning   VMLW011

Unsupervised Learning• Neural Networks

Page 12: Workshop on Machine Learning   VMLW011

Model selection Supervised or Unsupervised Classification or Regression No of Training sets Feature types

• Linear Regression• Normal equation

• Logistic Regression • Naive bayes

• K-mean• Neural Networks• SVM

Page 13: Workshop on Machine Learning   VMLW011

TensorFlow – Deep Learning• What is Deep Learning ?

• MNIST Example - Mixed National Institute of Standards and Technology database

• Theano , Tensorflow , Scikit learn, Caffe, Keras

Page 14: Workshop on Machine Learning   VMLW011

Important links & Contact• TensorFlow: • https://www.tensorflow.org/install/• https://www.continuum.io/downloads • https://github.com/1228337123/tensorflow-seq2seq-chatbot•

If your python is on 3.6 • Update below statement • pip install --ignore-installed --upgrade

https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.0-cp35-cp35m-win_x86_64.whl• to• pip install --ignore-installed --upgrade

https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.0-cp36-cp36m-win_x86_64.whl• Similarly for GPU command

• https://www.youtube.com/watch?v=IpGxLWOIZy4