VOOZH about

URL: https://thenewstack.io/how-machine-learning-works-an-overview/

⇱ How Machine Learning Works: An Overview - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2016-10-28 06:53:17
How Machine Learning Works: An Overview
tutorial,
AI / Operations

How Machine Learning Works: An Overview

The objective of all the machine learning algorithms is to estimate a predictive model that best generalizes to a particular type of data.
Oct 28th, 2016 6:53am by Tanushri Chakravorty
👁 Featued image for: How Machine Learning Works: An Overview
Feature image by Stefan Kunze, via Unsplash.
This post is one in a series of tutorials and analysis exploring the fields of machine learning and artificial intelligence.

Suppose we want to buy the best web camera available in the market. In real life, the process we’d follow would be to look at several product reviews describing qualities about the model we are considering purchasing. For example, if we see that the reviews mostly consists of words like “good,” “great,” “excellent” etc. then we’d conclude that the webcam is a good product and we can proceed to purchase it. Whereas if the words like “bad,” “not good quality,” “poor resolution,” then we conclude that it is probably better to look for another webcam. So you see, the reviews help us perform a “decisive action” based on the “pattern” of words that exist in the product reviews.

Hence, the relationship among the buyers who purchased the webcam and wrote product reviews will influence other buyers, and their product reviews, in turn, will influence future purchases. Thus, a pattern exists across the people who already purchased the product and the future buyers of the product.

Machine learning tries to encode this human decision-making process into algorithms.

👁 Image

Machine Learning Process

Considerations

Moving on from the example, let us look at the conditions that must be met before applying machine learning to a problem.

  • A pattern must exist in the input data that would help to arrive at a conclusion. For instance, if we concluded the product reviews are random and do not offer any meaning, then it would be difficult to arrive at a decision by using them. To solve a problem with machine learning, the machine learning algorithm must have a pattern to infer from.
  • There must exist an ample amount of data (examples, samples) to apply machine learning to a problem. If there are no product reviews for the webcam, it will be difficult to arrive at a decision whether or not to buy the product.
  • It is difficult to formulate a mathematical expression ourselves that describes the behavior of the problem. Hence, machine learning is used to derive meaning from the data and perform “structured learning” to arrive at a mathematical approximation to describe the behavior of the problem.

Hence, if the above three conditions are not met, it will be futile to apply machine learning to a problem through structured inference learning. But if we fulfill the above three conditions, then we are good to proceed.

Machine Learning Components

Now, let us look at some of the components of machine learning, based on the product purchasing problem above. There are the product reviews, which serve as data to the machine learning algorithm. There is the output or the decision of whether the webcam is worth purchasing based on its reviews. Then there is the structured learning component performed by the machine learning algorithm to understand the pattern of the input data to give output.

The expression that the machine learning formulates is called as “the mapping function” and is used to learn the “target function.”  The machine learning algorithm formalizes an expression that maps the input data to an output. In our example, a good review will help map (or correspond) to output, “buy the webcam” and a bad review will map to output, “do not buy the webcam.”

The target function is always unknown to us because we cannot pin it down mathematically. This is where the magic of machine learning comes in, by approximating the target function.

How Machine Learning Learns a Target Function

Hence, a machine learning performs a learning task where it is used to make predictions in the future (Y) when it is given new examples of input samples (x).

Y = f(x)

As you can see, we do not know any properties of the target function f. What is its form? Linear, non-linear? So we use machine learning to approximate this function by learning from examples (x). If we knew the properties of f, then there would be no need for learning from data and use machine learning. Instead, we could have used the target function directly by solving the equation. But in the product review example, the behavior of the target function cannot be described using an equation and therefore machine learning is used to derive an approximation of this target function. The target function tries to capture the representation of product reviews by mapping each kind of product review input to the output.

For doing this, the machine learning algorithm considers certain assumptions about the target function and starts the estimation of the target function with a hypothesis. The hypothesis might vary from time to time since the target function is unknown. Therefore, to arrive at a better function that approximates well the target function, some iterations of the hypothesis are done to estimate the best output. Hence, the hypothesis helps the machine learning algorithm to arrive at a better approximation of the target function in a shorter period, rather than letting the machine learning algorithm itself to figure out the whole thing by trying endless computations. This would take very long to arrive at a prediction.

Summary

Hence, the objective of all the machine learning algorithms is to estimate a predictive model that best generalizes to a particular type of data. Therefore, for solving a problem by machine learning, it is imperative to have a large number of examples that can be used by the learning algorithm to understand the system’s behavior and similar kind of predictions can be generated by the system when the machine learning algorithm is presented with new examples of data. Although the learning task is not easy, with a better understanding of the different components of the machine learning and how they interact with each other, things will become clearer. In the subsequent posts, we will look at how the machine learning algorithms can be used to solve real-world problems.

TRENDING STORIES
Tanushri Chakravorty works on developing computer vision algorithms and applying machine learning to computer vision problems. Her previous work involves developing imaging applications for embedded devices. While not working she loves travelling and listening to music.
Read more from Tanushri Chakravorty
SHARE THIS STORY
TRENDING STORIES
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.