BSCS and BS AI students can use this guide to study “A Course in Machine Learning” (CIML) by Hal Daumé III, a self-published introduction to machine learning that the author offers free of charge on his official page, as one whole-book PDF or as one PDF per chapter. This page describes version 0.99, which the author calls a beta pre-release, chapter by chapter. The book grew out of his own machine learning classes, and he says a subset can be used for an undergraduate course while a graduate course could cover all of it.
The book is built to be gentle. It starts with decision trees, nearest neighbors and the perceptron, then covers practical issues and evaluation, linear models and SVMs, probabilistic models, neural networks, kernels, learning theory, ensembles, efficient learning, clustering and PCA, expectation maximization, structured prediction and imitation learning, with a chapter on bias and fairness in between. The author assumes differential calculus, discrete mathematics and the ability to write programs, and says a little linear algebra and probability will not hurt. There are no exercise sets or code in the book itself, so read it with a lab or project alongside.
Book Overview
| Course | Machine Learning (introductory to intermediate) |
| Degree Programs | BSCS (machine learning course), BS Artificial Intelligence |
| Level | Undergraduate, fourth or fifth semester onward according to the author; also suitable for first-year graduate students |
| Version | 0.99, described on the official page as the “beta” pre-release (version 0.9 is also available online). The compiled 227-page PDF itself is dated “Second printing, January 2017” and prints no version number |
| Author | Hal Daumé III |
| Publisher | Self-published by the author |
| Total Chapters | 18 chapters (1 Decision Trees to 18 Imitation Learning), plus an About this Book section at the start and a Code and Datasets appendix, a bibliography and an index at the end (the official page packages these as a Front Matter file and a Back Matter file) |
| Exercises | No end-of-chapter exercise sets and no solutions; short “think about it” questions appear in the text. The author’s GitHub repository has six labs and three projects |
| Terms of the Free Copy | Free for anyone at no cost with almost no restrictions, under the CIML License. You may not redistribute it yourself and may not charge a fee for printed versions; link to the CIML web page instead. This notice comes from the author’s licence page; the PDF’s own copyright page does not print it |
| Language | English |
| Format | PDF: the whole book (227 pages) or individual chapters (a printed copy is also sold by the author) |
Chapter List
The page follows the chapter numbers and titles in the table of contents of the compiled PDF, which are the same as on the official CIML page (Chapters 1 to 18, followed by a Code and Datasets appendix). The book has fewer than 30 chapters, so every chapter gets its own block: a summary of what it actually covers, key facts, a tip, a common mistake and two important questions. The difficulty labels are this page’s own judgement, not the author’s. The summaries were written from the book’s own text and checked against the 227-page PDF (second printing, January 2017); where the PDF is unfinished, the block says so.
Chapter 1: Decision Trees
Difficulty: Easy · Key topics: generalization, training and test data, regression, classification, ranking, decision tree, greedy splitting, loss function, data generating distribution
The book starts with the question “what does it mean to learn?” using a student, Alice, who is judged on an exam that tests new questions rather than repeated ones. Learning is cast as predicting the future from the past, and the chapter names the canonical problems: regression, binary and multiclass classification, and ranking. It then builds a decision tree for a 20-example course recommendation data set by asking, at each step, which single yes/no question gives the best score, splitting the data and recursing. The chapter closes by formalizing learning with a loss function, an unknown data generating distribution, training error and expected error.
Key Points:
- Generalization, doing well on examples not seen in training, is the central idea of machine learning.
- The test set must stay hidden; if the algorithm sees it early it can cheat.
- A decision tree is built greedily: pick the feature whose majority-vote answers are correct most often, split the data, then recurse on each part.
- Recursion stops when the labels are unambiguous or no features remain, and the leaf predicts the most frequent label.
- Common loss functions: squared or absolute loss for regression and zero/one loss for classification.
- Training error is an average over the training data; the quantity we care about is the expected error over the unknown distribution.
- Training and test data must come from the same distribution, or the learned rule can latch onto an accident of data collection.
Practice Tip: Before reading the tree, tally the labels for each yes/no feature by hand on a small table of your own and compute each feature’s score. Doing it once makes the greedy algorithm obvious.
Common Mistake: Believing a perfect score on the training data proves learning. A model that memorizes the training examples can score 100 percent and still fail on new ones.
Important Questions:
- Why is the test set kept secret during training? Because its job is to estimate performance on future data; once the algorithm or the designer has seen it, the estimate is no longer honest.
- How does a decision tree choose the feature to ask about first? It scores every feature by how many training examples would be classified correctly if that one question alone were asked, then takes the best-scoring feature as the root.
Chapter 2: Limits of Learning
Difficulty: Easy · Key topics: Bayes optimal classifier, inductive bias, noise, underfitting, overfitting, train/development/test split, hyperparameters, oracle experiment
This chapter explains why machine learning is not magic. If the data distribution were known, the Bayes optimal classifier, which picks the most probable label, would give the lowest possible error; real learners only see samples. A small bird-image puzzle shows inductive bias, the preference that decides between equally consistent answers. The chapter lists four reasons learning fails: noisy data, missing features, ambiguous labels and a bias that is too far from the target. It compares an empty tree with a full tree to define underfitting and overfitting, then introduces development data, hyperparameters such as maximum depth, and a twelve-step view of a real deployment.
Key Points:
- The Bayes optimal classifier predicts the label with the highest probability under the true distribution; its error is the Bayes error rate, the best any classifier can achieve.
- Inductive bias is the set of preferences a learner brings in addition to the data; a shallow tree prefers decisions based on a few features.
- Four causes of failure: noise, insufficient features, examples with no single right answer, and a mismatched inductive bias.
- Underfitting means not learning something that could be learned; overfitting means fitting the quirks of the training set.
- A hyperparameter, such as maximum tree depth, cannot be tuned on training data because training error always rewards a bigger model.
- Typical split: 70 percent training, 10 percent development, 20 percent test.
- An oracle experiment asks how much a perfect component would help before you invest in building it.
Memory Tip: Picture two students: one who studied nothing (underfit) and one who memorized last year’s paper (overfit). Neither will do well on the new exam.
Common Mistake: Tuning hyperparameters on the test set because it “feels like” the right data to use. That quietly turns the test set into training data.
Important Questions:
- What is inductive bias? The assumptions that make a learner prefer one answer over another when the data alone cannot decide, for example “only a few features matter” for a shallow tree.
- Why do we need a development set as well as a test set? The development set is used to choose hyperparameters, so the test set stays untouched and can give an unbiased estimate of future performance.
Chapter 3: Geometry and Nearest Neighbors
Difficulty: Easy · Key topics: feature vectors, categorical features, Euclidean distance, K-nearest neighbors, decision boundary, feature scale, K-means, curse of dimensionality
Each example is turned into a feature vector, so a data set becomes points in a high dimensional space. Real values are copied, binary features become 0 or 1, and a categorical feature with V values becomes V indicator features. With distances available, the chapter develops the nearest neighbor classifier and its K-nearest-neighbor voting version, shows how K trades overfitting against underfitting, and compares decision boundaries of neighbors and trees. A ski versus snowboard example shows why feature scale matters. K-means clustering appears as a first unsupervised method, and the chapter ends with the curse of dimensionality: grid indexing becomes impossible and distances between random points concentrate.
Key Points:
- Features have no meaning to the machine, only their values and how they vary across examples.
- A categorical feature with V possible values is mapped to V binary indicator features, so that colours are not given a false order.
- KNN has no training phase: it stores the data and lets the K closest training points vote.
- K is a hyperparameter: K = 1 overfits noise, K = N always predicts the majority class.
- KNN treats all features equally, so irrelevant features and unscaled features hurt it.
- K-means alternates between assigning points to the nearest center and recomputing each center as the mean.
- About 20 dimensions counts as low, about 1,000 as medium and about 100,000 as high; in high dimensions all pairwise distances look nearly equal.
Practice Tip: Take any small data set with two numeric columns, multiply one column by 1,000 and run a nearest neighbor prediction before and after. You will see the prediction change purely because of scale.
Common Mistake: Encoding colours or cities as 1, 2, 3 and feeding them to a distance-based method. It tells the model that some categories are closer to each other than others.
Important Questions:
- Why can K = 1 be a bad choice? One mislabeled or noisy neighbor decides the prediction, so the classifier overfits label noise; a larger K lets several neighbors outvote the noise.
- What does the curse of dimensionality mean for nearest neighbors? Indexing by a grid needs exponentially many cells, and in very high dimensions distances between random points become almost equal, so “nearest” carries little information unless the real data is structured.
Chapter 4: The Perceptron
Difficulty: Medium · Key topics: neuron model, error-driven updates, weight vector, decision boundary, margin, convergence, linear separability, voting and averaging, XOR
Inspired by a simple model of a neuron, the perceptron learns one weight per feature and a bias, and predicts the sign of the weighted sum. It is online and error driven: examples are processed one at a time and the weights change only after a mistake. Geometrically the weight vector is perpendicular to the decision boundary, and sorting weights shows which features push predictions up or down. The chapter defines the margin of a data set and states Rosenblatt’s convergence theorem, then fixes a weakness of the plain algorithm with voting and averaging. It ends with the limitation that only linear boundaries are possible, as in the XOR problem.
Key Points:
- Prediction is the sign of the activation: the sum of weight times feature value plus the bias.
- The training rule is to act only on a mistake: add y times x to the weights and y to the bias.
- The decision boundary is the set of points with zero activation, a hyperplane perpendicular to the weight vector.
- If the data is linearly separable with margin gamma and every example has length at most 1, the perceptron makes at most 1/gamma squared updates.
- If the data is not separable, the algorithm never settles down.
- Voting or averaging over all weight vectors seen, weighted by how long each survived, generalizes better than the last one.
- XOR-like data cannot be separated by a line; adding feature combinations fixes this at the price of bigger feature vectors.
Practice Tip: Implement the perceptron in ten lines and run it on four 2D points that are separable, then on the four XOR points. Print the number of mistakes per pass to see convergence in one case and endless updating in the other.
Common Mistake: Expecting the plain perceptron to converge on any data set. The convergence guarantee needs linearly separable data.
Important Questions:
- When does the perceptron update its weights? Only when it makes a mistake on the current training example, that is when the label times the activation is zero or negative.
- Why can a single perceptron not solve XOR? XOR labels the opposite corners of a square alike, and no single straight line separates those two groups, so a linear classifier cannot be correct on all four points.
Chapter 5: Practical Issues
Difficulty: Medium · Key topics: feature design, bag of words, irrelevant and redundant features, normalization, feature combinations, precision and recall, ROC and AUC, cross validation, significance testing, debugging, bias and variance
This chapter is about turning an abstract problem into a working system. It argues that a better representation usually gains more than a fancier algorithm, and shows pixel and bag-of-words features. It discusses irrelevant and redundant features, pruning rare features, feature normalization and example normalization, and how a decision tree can suggest feature combinations for a perceptron. Evaluation gets a long section: precision, recall, F-measure, precision/recall curves, sensitivity, specificity and ROC/AUC, followed by K-fold cross validation, the paired t-test and bootstrapping. The chapter ends with debugging advice and the approximation versus estimation error decomposition.
Key Points:
- Garbage in, garbage out: a poor representation limits every algorithm, and pixels alone throw away the locality of an image.
- Bag of words has one feature per vocabulary word; features that appear only a few times in training can be pruned.
- Feature normalization adjusts each feature across examples; example normalization rescales each example, often to unit length.
- Precision asks how many of the items found were correct; recall asks how many of the correct items were found; F-measure combines them.
- An ROC curve plots sensitivity against one minus specificity; random guessing has an AUC of 0.5 and a perfect system 1.0.
- In 10-fold cross validation each tenth of the data is held out once and the ten scores are averaged.
- A p-value is the probability of a difference at least this big arising by luck; the paired t-test and bootstrapping are two ways to compute significance.
Practice Tip: Take a classifier on an imbalanced data set and report accuracy, precision, recall and F-measure side by side. See how accuracy looks excellent while recall is poor.
Common Mistake: Treating a 0.1 percent improvement as real without asking how many examples were used to measure it. On 1,000 examples that is a single extra correct answer.
Important Questions:
- What is the difference between precision and recall? Precision is the fraction of predicted positives that are truly positive; recall is the fraction of true positives that were found. Raising the decision threshold usually raises precision and lowers recall.
- Why use cross validation instead of one development set? A single development set wastes training data and gives a noisy estimate; K-fold cross validation uses every example for both training and validation and averages the scores.
Chapter 6: Beyond Binary Classification
Difficulty: Medium · Key topics: imbalanced data, subsampling, weighted classification, one versus all, all versus all, tree reduction, ranking, error bounds
The chapter treats a binary classifier as a reusable black box for harder problems. For imbalanced data, such as fraud that is 0.1 percent of transactions, a learner can reach tiny error by always predicting the majority, so the chapter defines weighted binary classification and shows how subsampling turns it into an ordinary problem, with a proof that the weighted error is alpha times the binary error. For multiclass problems it compares one versus all, all versus all and tree reductions, with error bounds for each. Ranking is reduced to learning pairwise preferences between documents for a query.
Key Points:
- With 99.9 percent negatives, always predicting negative gives 0.1 percent error and learns nothing useful; the fix is to change the loss, not blame the data.
- Subsampling throws away a fraction of the majority class, and the resulting weighted error equals alpha times the error of the binary classifier.
- One versus all trains K classifiers, each class against the rest; its error is at most (K – 1) times the average binary error.
- All versus all trains one classifier for each pair of classes (K choose 2 of them), with a bound of 2(K – 1) times the binary error.
- A tree of binary decisions needs only about log2 K classifiers on a path and has an error bound of ceiling(log2 K) times the binary error.
- Ranking can be reduced to binary classification on pairs of documents per query, with an error at most twice the binary error in the general case.
Practice Tip: Build a data set with 1 percent positives, train any classifier and look at its confusion matrix. Then reweight the positive class and compare the two matrices.
Common Mistake: Reporting plain accuracy on an imbalanced problem. A model that never detects the rare class can still look excellent.
Important Questions:
- What are one versus all and all versus all? One versus all trains one classifier per class against all other classes; all versus all trains one classifier for every pair of classes and lets them vote. The first needs K classifiers, the second K(K – 1)/2.
- Why does an imbalanced data set cause trouble? Learners minimize overall error, so predicting the majority class everywhere is already almost optimal; unless errors on the rare class are weighted more, nothing pushes the model to find it.
Chapter 7: Linear Models
Difficulty: Hard · Key topics: optimization framework, surrogate losses, regularization, gradient descent, subgradients, closed-form least squares, support vector machine, margin, slack
The perceptron mixes a model and an algorithm; this chapter separates them. Learning is posed as an optimization problem: minimize a loss on the training data plus a regularizer that keeps the weights simple, known as Tikhonov regularization or structural risk minimization. Zero/one loss is hard to optimize, so the chapter replaces it with smooth convex surrogates: hinge, logistic, exponential and squared loss. It covers the 2-norm regularizer, gradient descent with step sizes, subgradients for the hinge loss and the 1-norm, and the closed-form solution for squared loss with a 2-norm regularizer. It ends by deriving the support vector machine from the large-margin idea.
Key Points:
- The objective is the sum of a loss on the training examples plus a constant times a regularizer on the weights.
- Minimizing zero/one loss directly is computationally prohibitive because tiny parameter changes cause jumps in the loss.
- Hinge loss is max(0, 1 minus y times the prediction); it is zero once an example is correct with margin at least 1.
- Logistic, exponential and squared losses also upper-bound the zero/one loss; exponential and squared grow faster for bad mistakes.
- Gradient descent repeatedly moves the weights against the gradient; too large a step size can diverge, too small a step is slow.
- Hinge loss and the 1-norm are not differentiable everywhere, so subgradients are used at the kinks.
- The SVM looks for the separating hyperplane with the largest margin; the soft-margin version adds slack variables with a penalty constant C.
Practice Tip: Write gradient descent for squared loss on a tiny data set and plot the objective after every step for three different step sizes. You will see convergence, slow progress and divergence.
Common Mistake: Choosing the regularization strength on the training data. A larger weight on the regularizer always raises training error, so it must be tuned on development data.
Important Questions:
- Why replace zero/one loss with a surrogate loss? Zero/one loss is not smooth, so optimization is very hard; convex surrogates such as hinge or logistic loss upper-bound it and can be minimized efficiently.
- What does the large margin idea say? Of all hyperplanes that separate the data, prefer the one farthest from the closest training points, because it leaves the most room for new points and is a useful inductive bias.
Chapter 8: Bias and Fairness
Difficulty: Medium · Key topics: train/test mismatch, importance weighting, unsupervised adaptation, supervised adaptation, feature augmentation, disparate impact, 80 percent rule, total variation distance
The chapter returns to the “Russian tank” warning from Chapter 1 with two real cases: speech recognition that failed for many non-male speakers because most of its training data came from men, and a criminal recidivism predictor that was biased against minorities. It covers train/test mismatch and two adaptation settings: reweighting old labeled examples by how likely they are under the new distribution when no new labels exist, and a feature augmentation trick that gives every feature a shared, an old-only and a new-only copy when some new labels exist. It then discusses fairness, disparate impact and the 80 percent rule, and a bound on how badly performance can drop.
Key Points:
- A classifier trained on one distribution can fail badly on another even if it is Bayes optimal for the first.
- Unsupervised adaptation reweights old examples by the ratio of new to old probability; the ratio can be estimated with a classifier that predicts which distribution an example came from.
- Supervised adaptation uses feature augmentation: a shared copy, an old-only copy and a new-only copy of each feature.
- Bias can enter through labels, through who is in the sample, through the way the task is defined and through features or model structure.
- The 80 percent rule says the positive rate for a protected group must be at least 80 percent of the rate for the reference group.
- Removing protected attributes is not enough, because other features correlate with them.
- The error on the new distribution can exceed the old error by an amount tied to the total variation distance between the two distributions.
Memory Tip: Ask three questions of every data set: Who is in it? Who labeled it? Who will it be used on? A mismatch in any answer is a bias warning.
Common Mistake: Believing that an algorithm is fair because it is automatic. The chapter stresses that using data and code does not make a decision fair.
Important Questions:
- What is feature augmentation for domain adaptation? Each feature is copied into a shared version, an old-distribution version and a new-distribution version, so the learner can share what both domains agree on and learn separately where they differ.
- Why is dropping the protected attribute not a fix for unfairness? Other features, such as location or word choice, can be strongly correlated with gender or race, so the model can still produce unequal outcomes without seeing the attribute itself.
Chapter 9: Probabilistic Modeling
Difficulty: Hard · Key topics: density estimation, maximum likelihood, naive Bayes, generative story, conditional models, logistic regression, priors, maximum a posteriori
Here learning is treated as statistical inference. Since the Bayes optimal classifier needs the data distribution, the chapter estimates one from data. Maximum likelihood is introduced with a coin flipped four times, then used to derive naive Bayes, whose assumption is that features are independent given the label, and whose decision boundary turns out to be linear. Generative stories turn modelling assumptions into likelihoods. Conditional models are introduced next: Gaussian noise on a linear relationship leads to squared loss, and a similar story gives logistic regression. Finally, priors on the weights give maximum a posteriori estimation, which reproduces 2-norm regularization.
Key Points:
- Maximum likelihood chooses the parameters under which the observed data is most probable; for the coin HHTH the estimate is 0.75.
- The naive Bayes assumption: features are conditionally independent given the label, which makes estimation possible.
- With Bernoulli features, naive Bayes has a linear decision boundary in log-likelihood-ratio form.
- A generative story describes step by step how the data could have been produced, and it translates directly into a likelihood.
- Generative models describe the joint distribution of input and label; conditional models describe only the label given the input.
- Linear regression with Gaussian noise gives squared error; a Gaussian prior on the weights gives the 2-norm regularizer.
- Maximum likelihood can be extreme with little data; two heads in two flips would give a coin that never shows tails.
Memory Tip: Likelihood asks “how probable is my data given the parameters?”; the prior adds “how plausible are the parameters before seeing data?” Maximum a posteriori uses both.
Common Mistake: Claiming that naive Bayes assumes all features are independent. It assumes independence only after the label is known.
Important Questions:
- What is the naive Bayes assumption? Given the class label, the features are independent of each other, so the probability of a full feature vector is a product of per-feature probabilities.
- How does a prior relate to regularization? Placing a Gaussian prior on the weights and maximizing the posterior adds a penalty proportional to the squared weights, which is exactly 2-norm regularization.
Note on this chapter: In the PDF, Section 9.6 ends with a one-line reminder that a comparison of conditional and joint models is still to be written, and the Further Reading section is empty. The learning objectives promise a comparison of generative, conditional and discriminative learning and a discussion of when generative models fail; the text does not develop either.
Chapter 10: Neural Networks
Difficulty: Medium · Key topics: hidden units, tanh, two-layer network, back-propagation, initialization, early stopping, deeper networks, depth versus breadth, RBF networks
The chapter extends the perceptron to non-linear models by inserting a layer of hidden units. A two-layer network with tanh hidden units can solve XOR, and a theorem states that such networks can approximate any continuous function on a bounded region arbitrarily well, given enough hidden units. Back-propagation is derived as gradient descent on squared error, and the chapter explains why weights must start as small random values: all-zero initialization keeps the hidden units identical. It generalizes to arbitrary acyclic graphs with forward and backward passes, argues for depth with the parity function, and ends with radial basis function networks as a bridge to nearest neighbors.
Key Points:
- A two-layer network counts the layers of trained weights; the inputs are not a layer.
- Hidden units use a smooth sigmoid-shaped link such as tanh instead of the sign function, so gradients exist.
- Back-propagation applies the chain rule to compute the gradient of the loss with respect to every weight.
- Starting every weight at zero makes all hidden units behave identically and leaves training stuck in a poor solution, so use small random values.
- Neural network objectives are non-convex with many local optima, and very deep networks are hard to train because gradients shrink as they pass back through many layers; the chapter mentions layer-wise initialization with unlabeled data only briefly.
- Historically, networks were controlled with early stopping rather than regularization.
- Computing parity with a circuit of depth less than log2 D needs exponentially many gates, which motivates deeper networks.
Practice Tip: Train a network with two hidden units on the four XOR points, once from random weights and once from all zeros. Compare the hidden activations to see the symmetry problem.
Common Mistake: Assuming this chapter covers modern deep learning. It stops at feed-forward networks with sigmoid-style units and back-propagation; convolutional, recurrent and attention models are not covered.
Important Questions:
- Why not initialize all weights to zero? Every hidden unit would then compute the same value and receive the same gradient, so they stay identical forever and the network behaves like a single unit.
- If two layers can approximate any function, why use deeper networks? The theorem says nothing about size; some functions, such as parity, need exponentially many units when shallow but only a few when deep.
Chapter 11: Kernel Methods
Difficulty: Hard · Key topics: feature expansion, kernel trick, representer theorem, kernelized perceptron, kernelized K-means, Mercer condition, polynomial and RBF kernels, SVM dual
Exploding the feature space makes linear models non-linear, but the cost in computation and memory grows quickly. The chapter shows how to avoid the expansion. Observing that the perceptron weight vector is always a sum of expanded training examples, it rewrites the algorithm so that it only needs dot products between examples, which a kernel function computes directly. The same trick is applied to K-means, whose cluster means also stay in the span of the data. The chapter explains which functions are valid kernels (positive semi-definite, Mercer’s condition), builds new kernels from old ones, and presents polynomial and Gaussian (RBF) kernels. It finishes by deriving the dual of the soft-margin SVM.
Key Points:
- A kernel K(x, z) is a shortcut for the dot product of two expanded feature vectors, computed without building them.
- During a perceptron run the weight vector always lies in the span of the training examples, so it can be stored as one coefficient per example.
- The mean of a set of points is also in their span, so K-means can be kernelized.
- A valid kernel must be positive semi-definite; the sum of two kernels is again a kernel.
- Polynomial kernels capture feature combinations up to a chosen degree; the Gaussian (RBF) kernel gives bump-shaped similarity.
- The SVM dual has one variable per training example, each bounded by C; examples with non-zero value are the support vectors.
- Primal variables are the weights, bias and slacks; the dual variables are the Lagrange multipliers.
Memory Tip: Think of a kernel as a similarity score. If an algorithm only ever asks “how similar are these two examples?”, you never need the coordinates.
Common Mistake: Plugging any similarity function into a kernelized algorithm. The function must be a valid kernel, or the optimization problem can lose its good properties.
Important Questions:
- What is the kernel trick? Rewrite the algorithm so it uses the data only through dot products, then replace each dot product by a kernel function that computes the dot product in a richer feature space without ever forming it.
- What are support vectors? The training examples whose dual variables are non-zero; they alone determine the learned SVM decision boundary.
Note on this chapter: The learning objectives list a kernelized version of regularized least squares regression, but the chapter text only kernelizes the perceptron, K-means and the SVM.
Chapter 12: Learning Theory
Difficulty: Hard · Key topics: impossibility of induction, PAC learning, sample complexity, learning conjunctions, Occam’s bound, hypothesis class size, VC dimension
This chapter asks whether learning is always possible, how many examples are needed, and whether test performance will match training performance. A noisy example distribution shows that no learner can reach zero error, and the luck of the sample means no learner can always succeed, so the best one can ask is to be probably approximately correct (PAC): error at most epsilon with probability at least one minus delta. Learning boolean conjunctions by throwing out contradicted terms is the worked example, and Occam’s bound and the VC dimension carry the idea to finite and infinite hypothesis classes. Parts are unfinished in the PDF: the sample-size formulas for conjunctions and decision trees are left blank and the proof of Occam’s bound is not written.
Key Points:
- No learning algorithm can succeed on every distribution; some inductive bias is unavoidable.
- An (epsilon, delta) PAC algorithm outputs a function with error at most epsilon, with probability at least 1 minus delta.
- The “probably” is needed because the sample might be unrepresentative; the “approximately” because exact learning of noisy data is impossible.
- Learning a boolean conjunction is done by starting with every possible term and throwing out the terms that each positive example contradicts.
- Occam’s bound is stated for a finite hypothesis class and a learner with zero training error: the examples needed are tied to the logarithm of the number of hypotheses (the PDF gives no proof and no final formula).
- The VC dimension of a class is the largest set of points it can label in every possible way.
- Linear classifiers in two dimensions have VC dimension 3.
Memory Tip: To remember VC dimension, play the adversary game: you choose the points, the adversary chooses the labels, and you win if your class can always match them.
Common Mistake: Treating a theoretical bound as a prediction of the number of examples you need. Bounds are worst-case guarantees and are usually loose.
Important Questions:
- What does PAC learning mean? A learner is (epsilon, delta)-PAC if, for every distribution, the chance that it returns a function with error above epsilon is at most delta. It is called efficient when its running time and the number of examples are also polynomial in 1/epsilon and 1/delta.
- What does Occam’s razor say in machine learning? Simple solutions generalize well: if a small hypothesis class contains a function with zero training error, fewer examples are needed to trust it.
Note on this chapter: The introduction promises to show that 2-norm regularization provably improves generalization, and the learning objectives mention complexity measures versus regularizers and margins versus complexity, but the PDF has no section on either; the chapter ends after the VC dimension.
Chapter 13: Ensemble Methods
Difficulty: Medium · Key topics: voting, variance reduction, bagging, bootstrap resampling, weak and strong learners, AdaBoost, decision stumps, random forests
Groups of learners can beat a single one when they make different mistakes. The chapter first shows voting among different classifiers and then, because learning algorithms are deterministic, voting among copies of the same algorithm trained on different data. Bagging draws bootstrap samples of the training set, which lowers variance and acts as regularization. Boosting turns a weak learner, one that is only slightly better than 50 percent error, into a strong learner. AdaBoost does this by giving more weight to examples the previous learner got wrong, and decision stumps are the classic weak learner. Random forests use fixed-structure trees with random features, which are cheap to train and easy to parallelize.
Key Points:
- Ensembles help only when members differ; if every classifier makes the same mistake, voting changes nothing.
- Bagging builds M training sets of size N by sampling with replacement, trains one model on each and takes a vote.
- Bagging mainly reduces variance, so it works best with high-variance learners such as deep trees.
- A weak learner only has to beat chance (for example 49 percent error); a strong learner reaches any desired error with high probability.
- AdaBoost starts with equal weights, and after each round raises the weight of mistakes and lowers the weight of correct examples.
- A decision stump asks a single question, yet boosted stumps are very effective.
- Random forests pick the tree structure at random (random features at each branch), fill the leaves from data and average many trees, which is easy to parallelize.
Memory Tip: Bagging is a committee of independent opinions; boosting is a coach who makes each new player practise the shots the team keeps missing.
Common Mistake: Averaging several copies of a stable model trained on the same data. Without variation in the data or the model, the ensemble is just one model repeated.
Important Questions:
- How does bagging reduce variance? Each model sees a slightly different bootstrap sample, so each overfits in a different way; voting averages those quirks out while keeping the signal that all models share.
- What does AdaBoost do between rounds? It measures the weighted error of the latest weak learner, then increases the weights of the examples it got wrong and decreases the weights of the ones it got right, so the next learner focuses on the hard cases.
Chapter 14: Efficient Learning
Difficulty: Medium · Key topics: training versus test efficiency, stochastic gradient descent, step size schedule, data permutation, sparse regularization, 1-norm, truncated gradient, feature hashing
The earlier algorithms handle tens or hundreds of thousands of examples; this chapter is about millions or billions. It separates the wish for fast training from the wish for fast prediction. Stochastic optimization updates the weights after one example or a small batch, so learning starts long before a full pass; step sizes should shrink, for example like the inverse square root of the step number. Sparse regularization with the 1-norm and truncated gradients produces exact zeros and cheaper predictors. Feature hashing maps a huge feature space into a small one with a hash function, which cuts memory with little loss in accuracy.
Key Points:
- Fast training and fast prediction are different goals and need different methods.
- Stochastic gradient descent updates the weights from one randomly chosen example, or a small batch, instead of the whole data set.
- Step sizes of the form eta0 divided by the square root of the step number shrink over time, which helps convergence.
- Data should be shuffled; streaming through it in a fixed order can cause very bad behaviour, and one fixed permutation converges more slowly.
- The 2-norm rarely gives weights of exactly zero, but the 1-norm is the tightest convex stand-in for counting non-zero weights.
- Plain subgradient steps overshoot zero, so truncated gradient clips a weight at zero instead of letting it cross.
- Feature hashing sums the value of every original feature into the position its hash points to, replacing D weights with a much smaller number.
Practice Tip: Compare plain gradient descent and stochastic gradient descent on a linear model with 100,000 examples. Plot the objective against the number of examples processed, not the number of iterations.
Common Mistake: Using a fixed large step size with SGD and expecting convergence. The noise in single-example updates keeps the weights bouncing unless the steps shrink.
Important Questions:
- Why is SGD faster than batch gradient descent on large data? A batch step needs the gradient over every example, but SGD makes progress after each example, so useful learning happens long before one pass over the data is finished.
- What is feature hashing? A hash function assigns each original feature to one of P positions in a short vector, and the values landing in the same position are added together; it saves memory at the cost of a few collisions.
Chapter 15: Unsupervised Learning
Difficulty: Medium · Key topics: K-means objective, convergence, initialization, furthest-first heuristic, K-means++, choosing K, PCA, maximum variance, reconstruction error
Without labels there is no teacher, but data can still be summarized. The chapter revisits K-means as the minimization of the sum of squared distances from each point to its assigned center, and proves that the algorithm converges in a finite number of steps, though not necessarily to the best answer. Poor initialization gives poor clusters, so it presents the furthest-first heuristic and its randomized version K-means++. For dimensionality reduction it derives principal component analysis in two ways, as maximizing the variance of projections and as minimizing reconstruction error, and shows they are the same. AIC and BIC-style penalties are suggested for choosing the number of clusters or components.
Key Points:
- The K-means objective is the sum over all points of the squared distance to the center of its cluster.
- Each step of K-means can only keep the objective the same or lower it, and there are finitely many assignments, so it converges.
- Convergence is to a local optimum; the result depends on the starting centers.
- Furthest-first picks each new center as the point farthest from the centers already chosen; K-means++ samples points with probability proportional to squared distance.
- PCA with centered data projects onto the top eigenvectors of the matrix X-transpose times X.
- Maximizing variance of the projection is identical to minimizing reconstruction error.
- For a fixed K, AIC and BIC style penalties can be added to the error to help pick K.
Common Mistake: Running K-means once and trusting the answer. Run it with several initializations, or use K-means++, and compare the objective values.
Important Questions:
- Why does K-means always converge? Both the assignment step and the mean-update step never increase the objective, the objective cannot go below zero, and there are only finitely many ways to assign points to clusters.
- How is PCA related to reconstruction error? The direction that keeps the most variance of the data is also the direction whose one-dimensional projection loses the least information, so both views give the same eigenvectors.
Note on this chapter: In the PDF the chapter has only two finished sections, K-means revisited and linear dimensionality reduction. Section 15.3, Autoencoders, is empty and marked to do, and the learning objectives about non-linear dimensionality reduction, manifold learning, latent semantic analysis, agglomerative clustering and spectral clustering have no matching sections.
Chapter 16: Expectation Maximization
Difficulty: Hard · Key topics: hidden variables, generative story, mixture of Gaussians, soft assignment, lower bound, E step, M step, comparison with K-means and gradient descent
If labels are missing from a model that needs them, treat them as hidden variables and learn them with the parameters. The chapter motivates this with a teacher who must grade a 50-question true/false exam taken by 100 students without an answer key, estimating the hidden answers and each student’s score in turn. It then builds a mixture of Gaussians for clustering, which resembles K-means but assigns points softly. Finally it presents the general EM framework: because the log of a sum is awkward, EM repeatedly builds a lower bound on the log likelihood and maximizes it, alternating expected values of hidden variables with parameter updates.
Key Points:
- Hidden variables are quantities in the model that are never observed, such as cluster labels or true exam answers.
- The likelihood of observed data sums over all hidden values, and the log cannot be moved inside that sum, which makes direct maximization hard.
- The E step computes expectations of the hidden variables under the current parameters; the M step maximizes the likelihood using those expectations.
- EM maximizes a surrogate that is a lower bound on the log likelihood; raising the surrogate forces the true likelihood up as well.
- With a mixture of Gaussians, each point has a probability of belonging to each cluster, instead of a hard assignment.
- EM finds a local optimum, so initialization matters, just as it does for K-means.
Memory Tip: E is guess the hidden things, M is fit the parameters as if the guess were true. Repeat until nothing changes.
Common Mistake: Assuming EM finds the global best parameters. It only climbs to a nearby peak of the likelihood.
Important Questions:
- How is EM for a Gaussian mixture different from K-means? K-means makes hard assignments to the nearest center; the mixture model assigns each point to every cluster with a probability and also learns cluster weights and variances.
- Why does EM use a lower bound? The log likelihood of data with hidden variables is hard to maximize directly, so EM maximizes a simpler surrogate that never exceeds it; improving the surrogate guarantees the true likelihood does not get worse.
Note on this chapter: The general derivation in Section 16.3 ends after the lower bound is built with Jensen’s inequality and the requirement that it touch the true likelihood at the current parameters; how to choose the best weighting distribution is not worked out in the PDF. The learning objective about generative stories for dimensionality reduction is not covered, because the chapter treats only the exam-grading example and clustering.
Chapter 17: Structured Prediction
Difficulty: Hard · Key topics: joint features, multiclass perceptron, structured perceptron, sequence labeling, dynamic programming, Hamming loss, structured SVM, loss-augmented argmax, integer linear programming
Many tasks need several correlated outputs at once, such as part-of-speech tags for every word in a sentence. The chapter starts with the multiclass perceptron, which scores a joint feature vector of an input and a label, and then moves to the structured perceptron, which predicts the highest-scoring whole output and updates when it differs from the truth. For sequences with unary and Markov features, the argmax is solved with a Viterbi-style dynamic program over a lattice. Structured SVMs add regularization and a loss such as Hamming loss, through loss-augmented search. For general structures, the argmax can be written as an integer linear program.
Key Points:
- The model learns a score s(x, y) for an input paired with a whole output, and predicts the output with the highest score.
- The structured perceptron raises the score of the true output and lowers the score of the predicted one whenever they differ.
- With unary and Markov features, the best sequence is found by dynamic programming that keeps the best score for each label at each position.
- Hamming loss counts the number of wrong positions, so labelling one word wrong is cheaper than labelling every word wrong.
- Loss-augmented argmax gives every wrong output a bonus equal to its loss, so the true output must win by a margin that grows with the loss.
- Efficient special cases exist: CKY for trees, graph cuts for image segmentation and Kruskal’s algorithm for spanning trees.
- A general argmax can be posed as an integer linear program: a linear objective with constraints.
Practice Tip: Work the dynamic program by hand for a four-word sentence with three tags, filling in one table of best scores per position. Writing the table is the quickest way to understand it.
Common Mistake: Predicting each position independently and calling it structured prediction. The whole point is that neighbouring labels depend on each other.
Important Questions:
- Why can the argmax over sequences be computed efficiently? With only unary and Markov features, the score of a prefix ending in a label depends on just the previous label, so dynamic programming finds the best path through the lattice in time linear in the sentence length.
- What is the difference between the structured perceptron and the structured SVM? The structured SVM adds regularization and uses a task-specific loss through loss-augmented search, while the structured perceptron treats every error as equally bad.
Chapter 18: Imitation Learning
Difficulty: Medium · Key topics: sequential decision making, expert trajectories, supervised imitation, compounding error, DAgger, expensive experts, structured prediction as imitation
Many real problems need a sequence of decisions in a world that changes in response; the running example is a self-driving car that steers left, right or straight. In imitation learning we record an expert’s observation and action pairs and train a classifier to copy them. This is brittle: after one mistake the car reaches situations the expert never showed, and errors compound, so the loss can grow with the square of the time horizon times the classifier error. Dataset aggregation (DAgger) fixes this by letting the learned policy drive, asking the expert what to do in the states it reaches, and retraining on all the data. The chapter also applies it to copying slow search algorithms and to structured prediction.
Key Points:
- The data are trajectories: a sequence of observations, expert actions and losses over a time horizon T.
- Supervised imitation trains an ordinary classifier from observation to expert action.
- Compounding error: the learner drifts into states the expert never visited, so mistakes snowball and the loss can grow like T squared times the classifier error.
- DAgger starts from the expert data, then repeatedly runs the current policy, labels the states it visits with the expert’s action and trains on all data collected so far.
- DAgger needs an expert that can be queried many times, so slow algorithms such as game-tree search or shortest-path search make good experts.
- Structured prediction can be treated as imitation learning by producing the output one piece at a time, left to right.
Memory Tip: Supervised imitation trains on the road the expert drove; DAgger trains on the road the learner actually drives.
Common Mistake: Judging an imitation policy by its accuracy on the expert’s own demonstrations. What matters is how it behaves once it starts making its own decisions.
Important Questions:
- What is compounding error? A small chance of error at each step takes the learner into unfamiliar states where it is more likely to err again, so the total loss grows much faster than the per-step error.
- How does DAgger fix it? It collects training data from the states the learned policy itself visits, labelled by the expert, so the policy learns how to recover from its own mistakes.
Appendix: Code and Datasets
Appendix · Difficulty: Easy · Key topics: course rating data set, binary features, ratings, running example
The appendix titled Code and Datasets holds the small course rating data set (Table 1) that the early chapters use as a running example. It has 20 rows, each with a rating from minus 2 (terrible) to plus 2 (awesome) and yes/no answers to five questions: Easy, AI, Systems, Theory and Morning. Chapter 1 treats ratings of 0, 1 and 2 as “like” and minus 1 and minus 2 as “hate”, which gives 12 liked and 8 hated examples. This is the table used to build the first decision tree and to compare an empty and a full tree in Chapter 2. The bibliography and the index follow it at the end of the PDF.
Key Points:
- The table has 20 examples, one rating column and five binary feature columns.
- Ratings run from -2 to +2; 0, +1 and +2 count as “like” and -2 and -1 as “hate”.
- There are 12 liked and 8 hated examples, so always predicting “like” has a training error of 40 percent.
- The question “Is this a Systems course?” scores 18 out of 20 on this table in Chapter 1.
Practice Tip: Copy the table into a spreadsheet and count the likes and hates for each yes/no column before reading Chapter 1. You will reproduce the first split by hand.
Common Mistake: Treating this toy table as a real benchmark. It is only there to make the algorithms easy to follow.
Important Questions:
- How are the course ratings turned into labels? Ratings of 0, +1 and +2 become the positive class “liked” and ratings of -1 and -2 become the negative class “hated”.
- Why does the book use such a small data set? It is small enough to work through by hand, so each algorithm can be followed step by step before being used on large data.
How to Study This Book
Start with the author’s own advice in the front matter. The book is meant to be read in order, but the author says that once you are through Chapter 5 you can pretty much jump anywhere; the PDF fills in the dependency box at the start of a chapter only for Chapters 1 to 5 and Chapter 8. For a one-semester undergraduate course the author covers Chapters 1 to 13, sometimes skipping Chapter 7, 9, 10 or 12 when time is short. For a graduate course with no machine learning background he suggests moving quickly through Chapters 1 to 4 and then covering the rest with extra reading. He says the audience is anyone who knows differential calculus and discrete math and can program reasonably well, and he describes an undergraduate in their fourth or fifth semester as fully capable of the material.
For a BSCS machine learning course, read Chapters 1 to 5 first and in order. Chapters 1 and 2 give the vocabulary (loss, generalization, inductive bias, development and test data) that every later chapter assumes. Chapter 3 introduces nearest neighbors and K-means, Chapter 4 the perceptron, and Chapter 5 is the chapter to reread before any project, because it covers feature design, evaluation metrics, cross validation and significance tests. Then continue with Chapter 6 (imbalanced data and multiclass), Chapter 7 (linear models and the SVM), Chapter 9 (probabilistic modeling), Chapter 10 (neural networks) and Chapter 13 (ensembles). Chapter 8 on bias and fairness is short on equations and worth reading early, since it changes how you think about data.
The maths builds up quietly. Chapters 1 to 6 need little more than averages and vector arithmetic. Chapters 7, 10 and 14 use derivatives and gradients. Chapters 9 and 16 use probability: likelihood, independence and the Gaussian distribution. Chapter 11 uses Lagrange multipliers for the SVM dual, Chapter 15 uses eigenvectors for PCA, and Chapter 17 uses dynamic programming. The book scatters eleven short math review boxes through the text, on expected values, the law of large numbers, vectors and norms, dot products, means and variances, gradients, matrix multiplication and inversion, rules of probability, common distributions, spans, and eigenvalues, so use them before skipping ahead. Chapter 12 on learning theory is the most mathematical; read the definitions and the statements of the results first, and note that its proof for conjunctions is cut off and its proof of Occam’s bound is not written in this PDF.
Know which chapters lean on which. Chapter 3 depends on Chapter 1, Chapter 4 on Chapters 1 and 3, and Chapter 5 on Chapters 1, 3 and 4; Chapter 8 lists Chapters 1, 3, 4 and 5. The dependency boxes of the other chapters are empty in the PDF, so the links below are read from the text itself. Chapter 11 on kernels builds on the perceptron and the SVM from Chapters 4 and 7, Chapter 16 on EM builds on the probabilistic models of Chapter 9 and the K-means algorithm of Chapter 3, and Chapter 18 on imitation learning uses the structured prediction ideas of Chapter 17. A graduate reader who already knows the basics can read Chapters 7, 9, 11, 12, 16 and 17 as a compact theory sequence.
Know what the book does not cover. It is a gentle introduction, and the author says in the front matter that a book that tried to cover the latest developments would be outdated before it got online. The neural network chapter stops at feed-forward networks with sigmoid-style hidden units and back-propagation; the chapter notes that very deep networks are hard to train because gradients shrink, but convolutional networks, recurrent networks, attention models, dropout and modern training practice are not covered. Reinforcement learning is not covered either; the imitation learning chapter only notes that a learned policy is named after it. The algorithms are written as pseudocode, with no program code in the chapters, and the one data set the early chapters keep returning to is the 20-row course rating table.
Expect some unfinished corners. The compiled PDF is a second printing dated January 2017, and it still shows the author’s unfinished markers. Chapter 1 ends with a short written Further Reading section, but the Further Reading sections of Chapters 2 to 18 are all still marked to do. The copyright page has an unfinished marker where a licence notice would go, and the acknowledgements have one where the list of bug reporters should be. In Chapter 9 a planned comparison of conditional and joint models is only a one-line reminder, the opening quotation of Chapter 10 is missing, Chapter 12 has a cut-off proof for conjunctions and no proof of Occam’s bound, and the Autoencoders section of Chapter 15 is empty. Several chapters also list learning objectives that the text does not cover (see the notes in Chapters 9, 11, 12, 15 and 16). A few cross-references print as Section ??, Figure ?? or Exercise ?? because their numbers were never filled in. The official page itself calls 0.99 a beta pre-release and invites readers to report errors.
Practice comes from outside the chapters. The book has no end-of-chapter exercise sets and no printed solutions; instead it puts short “think about it” questions in the margins of the text. The author’s GitHub repository, linked from the official page, also holds labs on decision trees and overfitting, nearest neighbors, evaluation and significance, multiclass classification, gradient descent and SVMs, together with three projects. Work through them alongside Chapters 1 to 7 to turn the reading into code.
Used In These Programs
This book is used for Machine Learning and introductory Artificial Intelligence courses in: BS Computer Science (as a core or elective machine learning text) and BS Artificial Intelligence. Browse all Machine Learning books or all Computer Science books.
Who Should Read This
This book is written for undergraduates who have finished calculus and discrete mathematics, can program comfortably, and are taking their first machine learning course, which in a BSCS or BS AI programme usually means the middle to later semesters. It also suits first-year graduate students who want a gentle start, and self-learners who prefer ideas and pictures to heavy notation. It is a good choice before a more mathematical text, because it teaches the vocabulary and the habits (train, development and test splits, regularization, evaluation) that those books assume. It is not a deep learning book and has no code, so pair it with a practical framework tutorial for projects. If your probability or proof skills are rusty, Mathematics for Computer Science covers proofs, counting and probability, and Discrete Mathematics: An Open Introduction helps with proof technique. For probability and statistics worked in code, try Think Stats, and Think Bayes is a friendly companion to the probabilistic models in Chapter 9 and the EM chapter.
Applicable Universities
This book is useful for students at Pakistani universities offering BS Computer Science, BS Artificial Intelligence and related programmes with a machine learning course, including Punjab University, Virtual University, COMSATS, FAST, UET, NUST, and other HEC-recognized institutions.
Official Copy of A Course in Machine Learning
Hal Daumé III offers the book free on his official CIML page, either as one PDF of the whole book or as one PDF per chapter, and the CIML License asks readers to link to that page instead of passing the file around. Click below to open the official page and download your copy.
→ Visit Official PageFAQs
Is A Course in Machine Learning free?
Yes. The author offers the whole book and every chapter as free PDFs on the official page. It is not under a standard open licence such as Creative Commons: the CIML License says the book is “for the use of anyone anywhere at no cost and with almost no restrictions whatsoever”, but that you may not redistribute it yourself and may not charge a fee for printed versions. Use the official page and do not repost the file.
Which version is this?
The official page lists version 0.99, which the author calls the “beta” pre-release, and also keeps version 0.9 online. A printed copy is sold by the author. The summaries on this page were checked against the 227-page whole-book PDF from the official page; its title page says “Second printing, January 2017” and prints no version number, so a small difference from a later file on the site is possible.
How many chapters and exercises does it have?
There are 18 chapters, from Decision Trees to Imitation Learning, with an About this Book section at the start and a Code and Datasets appendix, a bibliography and an index at the end. The book has no end-of-chapter exercise sets and no printed solutions; it uses short “think about it” questions in the margins. The author’s GitHub repository adds six labs and three projects for practice.
Is it good for complete beginners?
It is written for beginners to machine learning, but not to mathematics or programming. The author expects differential calculus, discrete mathematics and reasonable programming skill, and says a little linear algebra and probability helps. The first six chapters are easy to follow; Chapters 11, 12 and 16 are the hardest, so read their definitions and intuition first and their derivations later.
Does it cover deep learning, SVMs and neural networks?
SVMs are derived in Chapter 7 and their kernelized dual in Chapter 11, and neural networks get one chapter (Chapter 10) on two-layer networks, back-propagation, depth versus breadth and radial basis function networks. That chapter notes that very deep networks are hard to train, but convolutional networks, recurrent networks, attention models and modern training practice are not covered, and the chapters contain pseudocode but no program code.
Is it still current in 2026?
The foundations are: decision trees, nearest neighbors, the perceptron, linear models and SVMs, probabilistic models, EM, ensembles, evaluation and learning theory have not changed in substance. What is missing is modern deep learning, and the book is unfinished in places. The PDF is a second printing from January 2017, the Further Reading sections of Chapters 2 to 18 are still marked to do, and a few passages are cut off (see How to Study This Book). The official page still calls 0.99 a beta. Use it for fundamentals and a recent text for deep learning.
Related Books
- Think Stats: Exploratory Data Analysis in Python – Allen B. Downey
- Think Bayes: Bayesian Statistics in Python – Allen B. Downey
- Mathematics for Computer Science – Lehman, Leighton & Meyer (MIT OCW)
- Discrete Mathematics: An Open Introduction – Oscar Levin (4th Edition)
Together, the 18 chapters give you the core ideas of machine learning, from decision trees and the perceptron to SVMs, probabilistic models, ensembles, EM, structured prediction and imitation learning, in one gentle book. Browse more Computer Science books for the rest of your semester.
A Course in Machine Learning (version 0.99) by Hal Daumé III. The compiled PDF (227 pages, second printing, January 2017) reads “Copyright © 2013–2017 Hal Daumé III” and “Self-published”; it does not print a licence notice. This is not a standard open-licence book. The author's CIML License (published at ciml.info/LICENSE) requires the following notice: “This book is for the use of anyone anywhere at no cost and with almost no restrictions whatsoever. You may copy it or re-use it under the terms of the CIML License online at ciml.info/LICENSE. You may not redistribute it yourself, but are encouraged to provide a link to the CIML web page for others to download for free. You may not charge a fee for printed versions, though you can print it for your own use.” Official source: http://ciml.info/. This page links to the official site and does not host or copy the book.
© Copyright Policy
Freebooks.pk is an educational resource for students in Pakistan. Textbooks and other books belong to their respective boards, authors and publishers, and all rights remain with them. If you are the copyright holder of any material on this page and want it changed or removed, please contact us or file a request under our DMCA policy. We review every request and remove reported content promptly.
