The Awaken Buddha
Artificial Intelligence
Home›TAB · Future Desk›How to learn AI, properly

How to learn AI, properly

You do not need a degree or a fortune to understand how modern AI works. You need a sensible order, some patience with maths, and a handful of free courses that have taught millions. Here is a path, and the story of how it opened up.

How to learn AI, properly

Illustration: TAB

T

TAB · Future Desk

· 9 min read

In the autumn of 2011, Stanford University put three of its computer science courses online, for free, for anyone. One of them was a machine learning class taught by a young professor named Andrew Ng. Around 100,000 people signed up for it. Across the three courses, roughly 350,000 people registered, from about 190 countries. The lectures were short videos. The homework was graded by a computer. Nobody got Stanford credit. And yet people stayed, did the exercises and finished.

Within months, the experiment had changed its teachers' lives. Sebastian Thrun, who had taught the artificial intelligence course, left Stanford in January 2012 to found Udacity. About three months later, Ng and his colleague Daphne Koller announced $16 million in funding for a company called Coursera. By the following autumn it carried more than a hundred courses. The age of the massive open online course had begun, and machine learning was its first great subject.

That history matters to anyone who wants to learn AI today, because it means the best introductions are often free, well tested and taught by people who built the field. What most learners lack is not material. It is a sensible order to take it in.

Why order matters more than any single course

Artificial intelligence is a wide field, but most of what people mean by it today is machine learning: systems that learn patterns from data rather than following rules a programmer wrote out by hand. Inside machine learning sits deep learning, which uses large neural networks with many layers. Inside that sit the large language models behind today's chatbots.

Each layer leans on the one beneath it. A language model is a neural network. A neural network is trained by the same basic method as a much simpler model that predicts house prices from floor area. That method, nudging numbers step by step to reduce error, is a piece of calculus. So a learner who starts at the top, with chatbots, will soon meet words like "gradient", "loss" and "embedding" with nothing to hang them on.

The path below goes in the order the ideas were built. It is not the only route, and it is not a race. It is a way to make sure that each new idea lands on something solid.

A learning path in four layers. Each rests on the one below; most learners move between them rather than finishing one before starting the next.
A learning path in four layers. Each rests on the one below; most learners move between them rather than finishing one before starting the next.Illustration: TAB

Layer one: just enough maths

The maths behind machine learning sounds forbidding, and people put off starting because of it. In practice three areas carry most of the weight.

Linear algebra is the language of data. A photograph is a grid of numbers; a sentence becomes a list of numbers; a neural network is mostly a long chain of matrix multiplications. The classic free course is MIT's 18.06, Linear Algebra, taught by Gilbert Strang and available through MIT OpenCourseWare with full video lectures. Strang's teaching is famous for making the subject feel like geometry rather than bookkeeping.

Calculus, at the level of derivatives, explains how a model learns. Training means measuring how wrong a model is, working out which direction would make it less wrong, and taking a small step that way. That direction is a derivative. You do not need to solve hard integrals. You need to understand what a slope is, and why following it downhill finds a low point.

Probability and statistics explain what a model's output means. When a classifier says an email is 92 percent likely to be spam, or a language model picks the next word, it is dealing in probabilities.

More on Artificial IntelligenceArtificial intelligence explained simply: a reader's guide20 min read

Layer two: classic machine learning

This is where Andrew Ng's teaching still sits at the centre. His original 2012 machine learning course on Coursera taught millions; DeepLearning.AI says more than 4.8 million people took it. It has since been rebuilt as the Machine Learning Specialization, made by DeepLearning.AI with Stanford Online. It runs to three courses, is pitched at beginners, and now uses Python, the language most of the field works in, instead of the older Octave.

Ng's own career explains why his courses carry weight. He co-founded Coursera and was its chairman; he was the founding lead of the Google Brain team, then chief scientist at Baidu; he founded DeepLearning.AI and remains an adjunct professor at Stanford. By his own site's count, more than eight million people have taken an AI class from him.

What you learn at this layer is the grammar of the whole subject. Linear and logistic regression. The difference between training data and test data, and why a model that memorises its training set is useless. Decision trees. Clustering. The trade-off between a model too simple to capture a pattern and one so flexible it learns the noise. These ideas recur in every later layer, including the largest language models.

Google's Machine Learning Crash Course is a good companion or alternative. It is free, built around short animated videos and interactive exercises, and covers linear and logistic regression, working with data, neural networks, embeddings, an introduction to large language models, and the practical side of running models in production, including fairness.

Layer three: deep learning, two ways

Deep learning can be taught in two opposite directions, and learners tend to have a strong preference.

The bottom-up route starts with a single artificial neuron, builds up to networks, derives how they are trained, and only then applies them to images or text. It is the route of most university courses and of DeepLearning.AI's own deep learning programmes. Its strength is that nothing is magic; its risk is that months pass before you build anything that feels real.

The top-down route does the reverse. fast.ai's Practical Deep Learning for Coders, created by Jeremy Howard and Rachel Thomas, has you train a working image classifier in the first lesson, then gradually opens the box. The course is free, runs to nine lessons of about ninety minutes each, and asks for roughly a year of coding experience and high-school maths. Its argument is that people learn the way they learn a sport: play first, study technique once you care.

Neither is right for everyone. A useful test is honest self-knowledge. If you abandon things when they feel abstract, go top-down. If you cannot rest until you understand why, go bottom-up. Many people end up doing both, in either order.

Layer four: modern models, and building things

Once you understand how a neural network is trained, the large language models of the 2020s stop being mysterious, though they remain impressive. They are very large networks, trained on enormous amounts of text to predict what comes next, then tuned further to follow instructions. The key architectural idea, the transformer, is built from parts you will already have met: matrix multiplications, a learned way of weighting which earlier words matter, and the same training loop as before.

At this stage the most valuable thing is no longer a course. It is a project. Pick a small problem you care about, find or collect some data, and try to make a model that helps. Classify your own photographs. Predict something from a public dataset. Fine-tune a small open model on text you know well. You will hit every problem the courses warned about, and you will remember the lessons in a way no video can give you.

What the courses cannot do for you

There is a temptation, once you discover how much good material exists, to collect courses the way some people collect books. Certificates pile up; understanding does not. The fix is simple and unglamorous: after each section of a course, close it and try to rebuild what you learned from a blank page. If you cannot, go back.

It also helps to remember what the 2011 Stanford experiment showed. Hundreds of thousands of people, in almost every country on Earth, finished hard technical material with no credit and no teacher in the room. They had a good course, a sensible order and the stubbornness to keep going. That is still the whole recipe.

Sources

See the original 2024 page in the Internet Archive’s Wayback Machine.

Up next

Artificial Intelligence

How ChatGPT-style AI works, in plain words

Chatbots that write, summarise and answer questions run on a type of software called a large language model. Strip away the hype and the idea is surprisingly simple: predict the next piece of text, very well, at enormous scale. Here is…

TAB · Future Desk · 10 min read

Share

Enjoyed this?

🎨
Artificial Intelligence

Follow this topic — every new article & thread flows into your feed.

From the desk

TAB · Future Desk

Technology, artificial intelligence, science and the evolution of civilization.

More →

Comments (0)

U

No comments yet. Be the first to comment!