Machine Learning A Basic Approach
Machine Learning A Basic Approach
a Basic Approach
Introduction
* "Machine Learning is the field of study that gives computers the ability
to learn without being explicitly programmed."
-Arthur Samuel, 1959
* Spam filter was the first Machine Learning application that became
mainstream.
* Problems for which existing solutions require a lot of hard work or long
lists of rules: one Machine learning algorithm can often simplify code
and perform better.
First, we need to study the problem for which you are applying machine
learning.
* Train the model with the required data. Data should be well pre-
processed.
* Evaluate the result produced by the model, and if the accuracy of the
result is around 85-95 %, then the model is performing well. The model
can be used as a solution to the problem.
* Or if the result's accuracy is less than 70%, then you need to study the
problem again and try to find the best-suited model according to your
data set.
1) Supervised Learning
3) Reinforcement Learning
Supervised Learning :
Regression
Note that some regression algorithms can be used for classification as well,
and vice versa. For example, Logistic Regression is commonly used for
classification, as it can output a value that corresponds to the probability
of belonging to a given class (e.g., 20% chance of being spam).
* k-Nearest Neighbors
* Linear Regression
* Logistic Regression
* Support Vector Machines (SVMs)
* Decision Trees and Random Forests
* Neural networks
Unsupervised Learning:
An
* Clustering
k-Means
Hierarchical Cluster Analysis (HCA)
Expectation Maximization
* For example, say you have a lot of data about your blog’s visitors. You
may want to run a clustering algorithm to try to detect groups of similar
visitors . At no point do you tell the algorithm which group a visitor
belongs to: it finds those connections without your help. For example, it
might notice that 40% of your visitors are males who love comic books
and generally read your blog in the evening, while 20% are young sci-fi
lovers who visit during the weekends, and so on. If you use a
hierarchical clustering algorithm, it may also subdivide each group into
smaller groups. This may help you target your posts for each group.
Clustering
Reinforcement Learning
For example, many robots implement Reinforcement Learning algorithms
to learn how to walk. DeepMind’s AlphaGo program is also a good
example of Reinforcement Learning: it made the headlines in March 2016
when it beat the world champion Lee Sedol at the game of Go. It learned
its winning policy by analyzing millions of games, and then playing many
games against itself. Note that learning was turned off during the games
against the champion; AlphaGo was just applying the policy it had learned.