Skip to content
LinkedInX

What Is Machine Learning?

Target audience: People new to AI and machine learning
Prerequisites: No prior knowledge required

Machine learning (ML) uses example data to train a model that connects inputs with useful outputs, then applies that model to new data for prediction or classification.[1] It can help when people cannot write every rule explicitly, provided that suitable data and evaluation criteria exist.

What you’ll learn

  • Explain who or what produces the rules in conventional programming and machine learning
  • Distinguish supervised, unsupervised, and reinforcement learning by the feedback available during training
  • Decide whether machine learning is appropriate by checking data, evaluation, and operating conditions

Machine learning derives prediction rules from data

The essence of machine learning lies in the difference in approach compared with traditional programming.

Traditional ProgrammingMachine Learning
InputRules (written by humans) + DataData + Correct labels
OutputAnswersRules (a model)
StrengthsProcessing with clear logicComplex pattern recognition
ExampleCalculating sales taxDeciding whether an image contains a cat
This table scrolls horizontally. Keyboard users can focus the table and use the left and right arrow keys.

Compare the two approaches with a cat classifier

Imagine teaching a child what a “cat” is.

  • Traditional programming: Spelling out every rule — “the ears are pointed, it has whiskers, four legs…”
  • Machine learning: Showing thousands of photos and repeatedly saying “this is a cat, this is a dog.” Eventually the child learns to judge “cat-ness” on its own.

In this example, the photo is the input, “cat or dog” is the expected output, and the paired photos and answers form the training data. A child and a model do not learn in the same way; the analogy only shows the shift from listing individual rules to learning a decision pattern from many examples.

The three approaches differ by their training feedback

1. Supervised Learning

Supervised learning is a technique that trains on data with correct labels. A model is trained with “answers (supervision)” already provided.[1]

  • Examples: Spam filters (classifying emails as “spam” or “not spam”), house price prediction (predicting price from area, age, and other features)
  • Representative algorithms: Linear Regression, Logistic Regression, Decision Tree, Random Forest, SVM (Support Vector Machine)
graph LR
    D["Labeled Data"] --> M["Training"]
    M --> P["Prediction Model"]
    P --> R["Predictions on New Data"]

2. Unsupervised Learning

Unsupervised learning is a technique for automatically discovering patterns and structures in data that has no correct labels. Because no “answers” are provided, the model finds groups and features in the data on its own.[2]

  • Examples: Customer segmentation (grouping customers with similar purchase patterns), anomaly detection (finding behavior that deviates from normal patterns)
  • Representative algorithms: KMeans clustering, PCA (Principal Component Analysis), DBSCAN

3. Reinforcement Learning

Reinforcement learning is a technique where an agent learns through trial and error, interacting with an environment and maximizing cumulative reward. There are no explicit correct labels; the reward signal from the outcome of each action is what drives learning.[1]

  • Examples: Game AI (mastering Go, chess, and video games to superhuman level), robot control (learning to walk or grasp objects)
  • Analogy: It resembles how a child learns a video game. At first the controls are pressed at random; a rising score reinforces “good actions” and a game-over reinforces “actions to avoid.”

Check the data and evaluation method before choosing ML

Machine learning is not automatically the right choice whenever rules are difficult to write. Check these conditions in order:

  1. Suitable training data exists: Relevance and quality matter as much as volume.
  2. Success can be measured: Define accuracy, false-positive rate, prediction error, or another task-specific measure.
  3. Learning is more suitable than explicit rules: A clear formula may be easier to explain and maintain as conventional code.
  4. Changes can be monitored after deployment: If incoming data shifts, the model needs reevaluation and possibly retraining.

Choose algorithms from the problem and operating constraints

Libraries like scikit-learn provide implementations of many machine learning algorithms. The scikit-learn user guide separates supervised learning, unsupervised learning, model selection, computational performance, and related topics.[2]

When choosing an algorithm, compare it across practical criteria instead of relying only on name recognition.

  • Problem type: classification, regression, clustering, or anomaly detection
  • Data shape: tabular data, text, images, time series, or another format
  • Explainability: whether stakeholders need to understand why a prediction was made
  • Compute cost: training time, inference time, and memory use
  • Maintainability: how easy it is to retrain, monitor, and debug as data changes

Boundaries that are easy to confuse

Q: Are machine learning and AI the same thing?

A: No. AI (Artificial Intelligence) refers broadly to techniques that replicate human intelligence on a computer. Machine learning is one approach to achieving AI. AI also includes rule-based systems and other methods that do not use machine learning.[1]

Q: Do I need programming experience to use machine learning?

A: Yes, if the goal is implementation — basic Python knowledge is needed. However, no programming experience is required just to understand the concepts. Learning concepts first and then moving to implementation tends to produce better results.

Supervised and unsupervised learning are not ranked alternatives; they use different forms of feedback. Supervised learning fits a known target that can be labeled. Unsupervised learning fits exploratory work that looks for structure without a predefined answer.

Summary: choose machine learning only with data and a success measure

Machine learning replaces a hand-written list of rules with a model derived from data. The choice among supervised, unsupervised, and reinforcement learning depends on whether the task provides target labels, a reward signal, or neither. In practice, suitable data, evaluation criteria, and a plan for monitoring change matter before the name of any algorithm.

References

  1. Google, Machine Learning Crash Course
  2. scikit-learn, User Guide
Quiz