Machine Learning & Deep Learning
Machine Learning & Deep Learning
Ruba Alkhusheiny
The Hope International
Welcome to Part 1- Classification
Unlike regression where you predict a continuous number, you use classification to predict a
category. There is a wide variety of classification applications from medicine to marketing.
Classification models include linear models like Logistic Regression, SVM, and nonlinear ones like K-
NN, Kernel SVM and Random Forests.
In this part, you will understand and learn how to implement the
following Machine Learning Classification models:
1. Logistic Regression
2. K-Nearest Neighbors (K-NN)
3. Support Vector Machine (SVM)
4. Kernel SVM
5. Naive Bayes
6. Decision Tree Classification
7. Random Forest Classification
Enjoy Machine Learning!
Classification Problems Real-world examples
• Malware classification – Multinomial classification – Classify the new /
emerging malwares on the basis of comparable features of similar
malwares.
• Product categorization – Multinomial classification – Categorize the
products sold by different retailers in same categories irrespective of
categories assigned to the product by the respective retailers. This use
case is relevant for ecommerce aggregators. Read this page on
product categorization for greater details.
• Ad click through rate prediction – Binary classification – Whether one
or more ads on the website will be clicked or not.
• Customer behavior prediction: Customers can be classified in different
categories based on their buying patterns, web store browsing
patterns etc.
Welcome to Part 2- Clustering
• Clustering is similar to classification, but the basis is different.
In Clustering you don’t know what you are looking for, and you are
trying to identify some segments or clusters in your data. When you
use clustering algorithms on your dataset, unexpected things can
suddenly pop up like structures, clusters and groupings you would
have never thought of otherwise.
In this part, you will understand and learn how to implement the
following Machine Learning Clustering models:
1. K-Means Clustering
2. Hierarchical Clustering
Enjoy Machine Learning!
K-Means Clustering
Hierarchical Clustering
Note:
Agglomerative
&
Divisive
Welcome to Part 3 - Natural Language
Processing
• Natural Language Processing (or NLP) is applying Machine Learning
models to text and language. Teaching machines to understand what
is said in spoken and written word is the focus of Natural
Language Processing. Whenever you dictate something into your
iPhone / Android device that is then converted to text, that’s an NLP
algorithm in action.
• You can also use NLP on a text review to predict if the review is a good one or a bad one. You can
use NLP on an article to predict some categories of the articles you are trying to segment. You can
use NLP on a book to predict the genre of the book. And it can go further, you can use NLP to
build a machine translator or a speech recognition system, and in that last example you use
classification algorithms to classify language. Speaking of classification algorithms, most of NLP
algorithms are classification models, and they include Logistic Regression, Naive Bayes, CART
which is a model based on decision trees, Maximum Entropy again related to Decision Trees,
Hidden Markov Models which are models based on Markov processes.
• A very well-known model in NLP is the Bag of Words model. It is a model used to preprocess the
texts to classify before fitting the classification algorithms on the observations containing the
texts.
In this part, you will understand and learn how to:
1. Clean texts to prepare them for the Machine Learning models,
2. Create a Bag of Words model,
3. Apply Machine Learning models onto this Bag of Worlds model.
Enjoy Machine Learning!
Welcome to Part 4- Deep Learning
• Deep Learning is the most exciting and powerful branch of Machine Learning. Deep Learning
models can be used for a variety of complex tasks:
1. Artificial Neural Networks for Regression and Classification
2. Convolutional Neural Networks for Computer Vision
3. Recurrent Neural Networks for Time Series Analysis
4. Self Organizing Maps for Feature Extraction
5. Deep Boltzmann Machines for Recommendation Systems
6. Auto Encoders for Recommendation Systems
In this part, you will understand and learn how to implement the following Deep Learning models:
1. Artificial Neural Networks for a Business Problem
2. Convolutional Neural Networks for a Computer Vision task