numpy
8 tutorials tagged “numpy”.
- Derivatives and GradientsA gradient tells a model how to change its parameters to reduce error. Compute one by hand with the chain rule and with NumPy, and check they match.
- Similarity and Cosine DistanceCosine similarity measures the angle between two vectors: 1 for the same direction, 0 for unrelated, -1 for opposite. Compute it by hand, then on sentences.
- Vectors and MatricesVectors and matrices hold the numbers in machine learning. Learn dot products, matrix multiplication and shape rules with NumPy, and see a neural network layer.
- Why Math Matters for MLMachine learning runs on linear algebra, probability, statistics and calculus. See all four at work in one tiny model that predicts house prices.
- NumPy BasicsNumPy arrays and vectorized operations: create arrays, apply math to every value at once, summarize, filter with conditions and work across rows.
- Probability BasicsProbability measures uncertainty. Learn conditional probability and Bayes' rule with a spam filter example, and check the math with a simulation.
- Self-AttentionSelf-attention lets each token gather information from earlier tokens using queries, keys and values. Compute it by hand, then read the heads of a real model.
- Statistics for MLStatistics summarizes data and tells signal from chance: mean, median, variance, correlation, and a permutation test for an A/B experiment, all in NumPy.