A college machine learning tutor, one to one
George Li teaches college introductory machine learning one to one by video: the math behind each method, the code that fits it and the judgment to read the result.
For students and parents planning test prep or coursework: one hour with George Li, one to one by video, is $180, $200 or $160, by subject. You leave with a written plan within one working day.
Book your first sessionWhat a college introductory machine learning course typically covers
Courses differ in math level and tools, so the syllabus decides the plan. Most introductory courses move through these blocks.
- The supervised learning workflow. Features and labels, training, validation and test sets, and how to tell whether a model has overfit.
- Linear and logistic regression. Loss functions, the closed-form solution, gradient descent and the decision boundary of a classifier.
- Evaluating a model. Accuracy, precision, recall, the F1 score and ROC curves, and when each one misleads.
- Regularization and model selection. Penalties on large weights, cross-validation and the trade-off between bias and variance.
- Trees, ensembles and nearest neighbors. Decision trees, random forests, boosting and k-nearest neighbors, and what each assumes about the data.
- Neural networks. The perceptron, layers and activation functions, backpropagation and the practical side of training.
- Unsupervised learning. Clustering with k-means and dimensionality reduction with principal components.
- The math underneath. The linear algebra, probability and calculus the course leans on, reviewed where a problem needs it.
Where students usually get stuck
Machine learning courses mix three skills: the math behind a method, the code that fits it and the judgment to read the result. Students usually have two of the three. Sessions find which one is missing and rebuild it on a small example you can compute by hand before any library runs.
The most expensive mistake is judging a model on the data it was fit to. George asks the same question of every result: what data was held out, and would you trust this number on a new sample? That habit is what an exam on overfitting tests, and it is what makes a project report credible.
What a session looks like
- You bring the question. A method whose math you cannot follow, code that runs but gives a result you do not trust or an exam that is coming. Send the syllabus before your first session so the plan follows your course.
- The idea first. George explains what a method is trying to do with a data set small enough to compute by hand, before any library or any proof.
- You solve, George asks. You work a step of the method out loud on a shared screen, with numbers. George asks what the result means and stops you at the first claim the data does not support.
- Mistakes first. George goes back over the problems that went wrong, so the next session starts from them.
Two machine learning problems, solved the way a session solves them
These are our own problems. Each one shows the habit a session builds: compute a small case by hand, then ask what the number means.
One step of gradient descent
Fit y = w * x to the points (1, 2) and (2, 3) by minimizing L(w) = (w * 1 - 2)^2 + (w * 2 - 3)^2. Start at w = 0 with a learning rate of 0.05 and take one step.
- Find the gradient: dL/dw = 2 * 1 * (w * 1 - 2) + 2 * 2 * (w * 2 - 3).
- Evaluate at w = 0: 2 * (-2) + 4 * (-3) = -4 - 12 = -16.
- Step against the gradient: w = 0 - 0.05 * (-16) = 0.8.
- Check the loss: before, L(0) = 4 + 9 = 13, and after, L(0.8) = 1.44 + 1.96 = 3.40.
- Compare with the exact answer: setting the gradient to zero gives w = 8 / 5 = 1.6, so one step moved halfway there.
After one step w = 0.8 and the loss has fallen from 13 to 3.4. The gradient was negative, so w increased. A session has the student predict that direction first, because a sign error here is the most common mistake in the first assignment.
When accuracy hides the problem
A spam filter is tested on 1,000 emails, 80 of which are spam. It flags 50 emails, and 40 of those are spam. Find its precision, recall and accuracy.
- Fill the counts: true positives are 40, false positives are 50 - 40 = 10, and false negatives are 80 - 40 = 40.
- The true negatives are the rest: 1,000 - 40 - 10 - 40 = 910.
- Precision is the share of flagged emails that are spam: 40 / 50 = 0.80.
- Recall is the share of spam that was flagged: 40 / 80 = 0.50.
- Accuracy is the share of all emails judged correctly: (40 + 910) / 1,000 = 0.95.
Precision is 0.80, recall is 0.50 and accuracy is 0.95. A filter that flagged nothing would also reach 0.92 accuracy, so the high number says little and the recall says the filter misses half the spam. A session makes the student say which of the three matters for the job.
What George does and does not do
When you bring a graded problem, George works a different one of the same kind with you, and you then solve yours on your own.
Book
Sessions are 60 or 90 minutes by video. Start with a first session; prices and package sizes are on the college coursework tutoring page and the packages page. Other college courses are listed under college courses.