Part of the AI topic in the Knowledge Hub.

Machine learning, explained in plain words

مشین لرننگ کیا ہے، ماڈل ڈیٹا سے کیسے سیکھتا ہے، سپروائزڈ اور ان سپروائزڈ لرننگ کا مطلب، اور پائتھن سے پہلے ماڈل تک کا راستہ۔

Learning from examples

Suppose you want software that tells whether a tomato is ripe from a photo. The old way was to write rules about colour and size and hope they covered every case. The machine learning way is to collect many photos labelled ripe or unripe, let a model adjust its internal settings until its guesses match the labels, then use it on new photos. The model learned a rule you never wrote.

That is all a model is: a function with many adjustable settings, and training is the process of adjusting them to make its guesses match known answers.

Supervised, unsupervised and the rest

Supervised learning uses labelled examples, as in the tomato case: predicting a price, classifying an email, reading a handwritten digit. Unsupervised learning has no labels and looks for structure, such as grouping customers who behave alike or spotting an unusual transaction. Reinforcement learning learns by trial and reward, the way a game playing program improves by playing. Most jobs in Pakistan today involve supervised learning on business data, which is the kind we teach first.

The maths you need and the maths you do not

To build useful models with modern libraries you need comfortable algebra, the idea of a function and a graph, averages and spread, and the habit of reading a chart carefully. You do not need to derive the algorithms by hand. Linear algebra and calculus matter later, if you go into research or build models from scratch, and they are easier to learn once you have seen why they are needed.

What matters more than maths at the start is data sense: knowing when a column is unreliable, when a result is too good to be true, and when a model has simply memorised the examples.

The path from Python to a first model

Learn Python first, because every library speaks it: our free Python for Beginners course is the usual start. Then learn to handle data in tables and charts, which Data Analytics Fundamentals covers with Excel and the ideas carry straight over. After that the Machine Learning programme takes you through the libraries, the methods above, evaluation, and a project on real data you can show an employer. The AI projects page in this hub lists beginner projects that prove each step.

Learn it

Start free: Python for Beginners, Data Analytics Fundamentals

Take it further: Machine Learning

All of them on AI courses in Pakistan, taught live online.

Questions

Is machine learning the same as AI?

Machine learning is the main method inside modern AI. AI is the broader goal; machine learning is how most of it is achieved today.

Which language should I learn, Python or R?

Python. It is what employers in Pakistan ask for, what the libraries assume, and what our courses use.

How long before I can build a model?

With steady study a beginner can train a first simple model within a few weeks of starting Python. Doing it well on messy real data takes months of practice, which is what the programme is for.

Previous: AI automation, explained · Next: AI projects a beginner can finish and show

More in AI

Back to the AI topic Start a free course