Why Use Machine Learning?

 

Why Use Machine Learning?

Consider how you would write a spam filter using traditional programming techniques (Figure 1):


Figure 1. The traditional approach

1.     First you would consider what spam typically looks like. You might notice that some words or phrases (such as “4U,” “credit card,” “free,” and “amazing”) tend to come up a lot in the subject line. Perhaps you would also notice a few other patterns in the sender’s name, the email’s body, and other parts of the email.

2.     You would write a detection algorithm for each of the patterns that you noticed, and your program would flag emails as spam if a number of these patterns were detected.

3.     You would test your program and repeat steps 1 and 2 until it was good enough to launch.

 

Since the problem is difficult, your program will likely become a long list of complex rulespretty hard to maintain.

In contrast, a spam filter based on Machine Learning techniques automatically learns which words and phrases are good predictors of spam by detecting unusually frequent patterns of words in the spam examples compared to the ham examples (Figure 2).

 The program is

·       much shorter,

·       easier to maintain, and

·       most likely more accurate.



 

Figure 2. The Machine Learning approach

 

What if spammers notice that all their emails containing “4U” are blocked?

·       They might start writing “For U” instead.

·       A spam filter using traditional programming techniques would need to be updated to flag “For Uemails.

·       If spammers keep working around your spam filter, you will need to keep writing new rules forever.

In contrast, a spam filter based on Machine Learning techniques automatically notices that “For U” has become unusually frequent in spam flagged by users, and it starts flagging them without your intervention (Figure 3).



Figure 3. Automatically adapting to change

 

Another area where Machine Learning shines is for problems that either are too complex for traditional approaches or have no known algorithm.

·       For example, consider speech recognition.

·       Say you want to start simple and write a program capable of distinguishing the words “one” and “two.”

·       You might notice that the word “two” starts with a high-pitch sound (“T”), so you could hardcode an algorithm that measures high-pitch sound intensity and use that to distinguish ones and twos—but obviously this technique will not scale to thousands of words spoken by millions of very different people in noisy environments and in dozens of languages.

·       The best solution (at least today) is to write an algorithm that learns by itself, given many example recordings for each word.

Finally, Machine Learning can help humans learn (Figure 4).

·       ML algorithms can be inspected to see what they have learned (although for some algorithms this can be tricky).

·       For instance, once a spam filter has been trained on enough spam, it can easily be inspected to reveal the list of words and combinations of words that it believes are the best predictors of spam.

·       Sometimes this will reveal unsuspected correlations or new trends, and thereby lead to a better understanding of the problem. 

·       Applying ML techniques to dig into large amounts of data can help discover patterns that were not immediately apparent.

·       This is called data mining.


Figure 4. Machine Learning can help humans learn

 

To summarize, Machine Learning is great for:

   Problems for which existing solutions require a lot of fine-tuning or long lists of rules: one Machine Learning algorithm can often simplify code and perform better than the traditional approach.

   Complex problems for which using a traditional approach yields no good solution: the best Machine Learning techniques can perhaps find a solution.

        Fluctuating environments: a Machine Learning system can adapt to new data


YouTube Video Link: https://www.youtube.com/watch?v=JtsDLKm5Fps






Source: Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow by Aurélien Géron



What is Machine Learning

 What is Machine Learning

        Machine Learning

        enables a Machine to Automatically learn from Data,

        improve performance from an Experience and

        predict things without explicitly programmed.”






        In Simple Words, when we fed the Training Data to Machine Learning Algorithm,

ü  this algorithm will produce a mathematical model and
ü  with the help of the mathematical model,
ü  the machine will make a prediction and

ü  take a decision without being explicitly programmed.


·      
Also, during training data,

o   the more machine will work with it

o   the more it will get experience and

o   the more efficient result is produced.

Example:  

In Driverless Car, the training data is fed to an Algorithm like  

ü  how to Drive a Car on Highway, Busy and Narrow Street with factors like

·       speed limit,

·       parking,

·       stop at signals etc.

After that, a Logical and Mathematical model is created on the basis of that and after that, the car will work according to the logical model.

Also, the more data, the data is fed the more efficient output is produced.


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.

 

To have a well-defined learning problem, three features needs to be identified:

  1. The class of tasks
  2. The measure of performance to be improved
  3. The source of experience

Simple learning process

        For any learning system, we must be knowing the three elements — 

ü  T (Task)

ü  P (Performance Measure),

ü  E (Training Experience).

        At a high level,

the process of learning system looks like below fig.




The learning process starts with

ü  task T,

ü  performance measure P and

ü  training experience E and

ü  objective are to find an unknown target function.

 

The target function is

ü  an exact knowledge to be learned from the training experience and

ü  its unknown.

 

For example, in a case of credit approval,

        the learning system will have

ü  customer application records as experience and

ü  task would be to classify whether the given customer application is eligible for a loan.

So in this case,

ü     the training examples can be represented as   


ü  where

        x represents customer application details and

        y represents the status of credit approval.


        With these details, what is that exact knowledge to be learned from the training experience?

        So the target function to be learned in the credit approval learning system is a mapping function f:x →y.

        This function represents the exact knowledge defining the relationship between input variable x and output variable y.

        The learning algorithms try to guess a “hypothesis’’ function h(X) that approximates the unknown f(.).

         A hypothesis is a function that best describes the target and Hypothesis set or space H(.) is the collection of all the possible legal hypothesis.

        This is the set from which the machine learning algorithm would determine the best possible (only one) which would best describe the target function or the outputs. 

        The goal of the learning process is to find the final hypothesis that best approximates the unknown target function.

Examples

i. Checkers game: A computer program that learns to play checkers might improve its performance as measured by its ability to win at the class of tasks involving playing checkers games, through experience obtained by playing games against itself.

            A checkers learning problem:

  • Task T: playing checkers
  • Performance measure P: percent of games won against opponents
  • Training experience E: playing practice games against itself

ii.  A handwriting recognition learning problem:

  • Task T: recognizing and classifying handwritten words within images
  • Performance measure P: percent of words correctly classified
  • Training   experience E: a database of handwritten      words with                  given classifications




iii.  A robot driving learning problem:

·       Task T: driving on public four-lane highways using vision sensors

·       Performance measure P: average distance travelled before an error (as judged by human overseer)

·       Training experience E: a sequence of images and steering commands recorded while observing a human driver



YouTube Link: https://www.youtube.com/watch?v=D9PrmxQPKS0&t=80s






Source: Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow by Aurélien Géron



About Machine Learning

Welcome! Your Hub for AI, Machine Learning, and Emerging Technologies In today’s rapidly evolving tech landscape, staying updated with the ...