UrbanPro
true

Learn Machine Learning from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Basics Of Machine Learning

S
Saumya Rajen Shah
19/08/2017 0 0
 
We have all been hearing recently about the term "Artificial Intelligence" recently, and how it will shape our future. Well, Machine Learning is nothing but a minor subfield of the vast field of A.I. Some of you might feel they both are basically the same thing, but in reality, they are not. A.I. is basically a cluster of interconnected fields, which makes it difficult for us to sometimes visualize the difference between them all.
 
Now then, what is the difference?
 
By definition, A.I. is basically trying to create a machine that is capable to think the way we humans do and specifically learn from our experiences.
On the other hand, M.L. is computer's way of learning from data and henceforth make decision from the information obtained.
 
Again, We can say that ML is basically a part of AI, but AI is not only limited to machine learning.
For example, AI can solve optimization problems, but Machine Learning can't. Another example would be the genetic algorithms.
 
Now,  a let's take a detour and understand the roots of M.L:
 
So, basically, the term "Machine Learning" was coined by Arthur Lee Samuel in 1959, the year he devised his famous Checkers-playing program. He basically recorded every move he made for every state while playing checkers into the machine and taught the machine to learn the most appropriate move for the current state of the game. After some time, the program surpassed his ability and defeated him.
 
Now, there is a general saying that:
"The program is as smart as it's program".
It certainly proves to be wrong in such cases.
 
According to Samuel, he defined Machine Learning as "the field of study that gives computers the ability to learn without being explicitly programmed."
 
A more formal and technical definition states that, "A computer program is said to learn from experience E with respect to some class of tasks T and performance measure P, if it's performance at those tasks T, as measured by P, improves with Experience E."

Yeah, I know, it will take a moment to understand it. But it is the best definition you can encounter.

Let's understand it for a moment with some example.
 
Let's say there is some task, like predicting the age of a person on the basis of the picture.
 
So now T : Predicting the Age.
Now, we feed some training data to our Machine, of various pictures and their respective age.
 
So now E : Various pictures and their respective ages.
Now we somehow device an algorithm which basically extracts important features and performs some computations and predicts the age of the person.
 
So P : The accuracy of our program in predicting the correct age.
 
So by definition, our machine is said to be learning, if the accuracy (P) of predicting the age (T) correctly, increases with time as our machine get's more and more data(E).
 
If you can't relate to it, try finding out the E,P,T for some basic Machine Learning examples like spam classification and this Checkers game.
 
Moving ahead, we can divide the type of Machine Learning algorithms based on the type of Data provided to us. It is mainly divided into two categories, Supervised and Unsupervised Learning. Several new types of Machine Learning algorithms have emerged known as Reinforcement Learning, Deep Learning etc. But basically, Supervised and Unsupervised form the basis of them all.
 
Now, before we dive in individually into each of those Learning, let's understand the basic difference between them both and some minor terminologies associated with Machine Learning.
 
While studying machine learning, you'll come across terms like features, labels and parameters. Feature is basically those attributes in the training data, which are more like the characteristics of the training data set.
 
Suppose we have a dataset of area of the house, no of rooms in it, and their respective prices in USD.
Area (sq. mtrs)
Rooms
Price(USD)
3890
3
573900
1100
3
249900
1458
3
464500
 
Based on the problem we are given, let's say we are to predict the house prices based on this given data.
So, the labels (usually denoted as y(i)), would be the prices. That is, basically, we are told to predict the prices, and we are already provided some sample prices, so these sample prices are our labels.
 
Now, features (X(i,j) or x(i)) can be defined as those characteristics or attributes on which our labels are dependent upon. So, Area and Rooms can be termed as our features.
Hence, for a house with unknown price, we will need it's features (Area, Rooms) to predict it's label.
 
Parameters can be termed as basically "the weights for the features" on which the labels are dependent upon. They are usually denoted as Theta(θ). You'll understand in brief about them when you learn about those algorithms individually.
 
In practical scenario, the training dataset size (m) is usually in  range of 10,000-100,000,000 and for each training example, there are 100-10,000 number of features (n). So your training example data set would be of (m × n) size, which is huge.
 
 
So, the simple method of distinguishing between the Supervised and Unsupervised learning algorithms is through the labels (y(i)). If labels are present, then it's a task for supervised learning, and if there are no labels provided, then it's an unsupervised learning task.
 
 
Formally, Let's define and distinguish Supervised and Unsupervised learning.
 
Supervised Learning, as said earlier, has labels present to help us train the data. It basically means that we are told, "Hey there! Here is some training data, and here is their respective answers. Now go and find the possible mathematical relationship between the training data and their labels, and use it to deduce the possible solution for future problem."
 
Whereas, In case of Unsupervised learning, we are told, "Hey there, again! Here is some training data, and we don't have any information about what we are supposed to do. So just find some pattern and information from this data."
 
Yeah, Unsupervised learning sounds so black-boxed, but it's quite simple to practice.
 
Let's dwell a bit deeper into them both.
 
Now, what can we do with Supervised Learning?
0 Dislike
Follow 2

Please Enter a comment

Submit

Other Lessons for You

K-Means Clustering For Image Compression From Scratch
Hello World, This is Saumya, and I am here to help you understand and implement K-Means Clustering Algorithm from scratch without using any Machine Learning libraries. We will further use...
S

Saumya Rajen Shah

1 0
0

Linear Regression Without Any Libraries
I am here to help you understand and implement Linear Regression from scratch without any libraries. Here, I will implement this code in Python, but you can implement the algorithm in any other...
S

Saumya Rajen Shah

2 0
0

Linear Regression: Performance Checking & Diagnosis
Hello World, This is Saumya, and I am here to help you understand and implement Linear Regression in more detail and will discuss various problems we may encounter while training our model along with...
S

Saumya Rajen Shah

1 0
0
X

Looking for Machine Learning Classes?

The best tutors for Machine Learning Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Machine Learning with the Best Tutors

The best Tutors for Machine Learning Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more