Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

Course overview

Machine Learning Foundations for LLM Work

Free · sign in to start and track progress

1 · Learning from data

  • 1Problems, data and baselines

    Exercise answers

    • Answer: Explore the inbox and build the baselines
    • Answer: Flag the features that arrive too late
  • 2Train, validation, test and leakage
  • 3Loss functions and gradient descent

2 · Classifiers and generalisation

  • 4Logistic regression, step by step
  • 5Metrics, thresholds and calibration
  • 6Overfitting, regularisation and cross-validation

3 · The maths the later courses assume

  • 7Probability for evaluation
  • 8Standard errors, intervals and paired tests
  • 9Vectors, dot products and embeddings
  • 10A small neural network from scratch
CapstoneTicket triage you can defendReference implementation

Module 1 · Learning from data · Lesson 1

Problems, data and baselines

Turn a vague request into a prediction problem with inputs, a label, a metric and a decision, look hard at the data and its labels, and build the two baselines any model must beat.

60 min 1 video 3 exercises 7-question quiz Answers
Setup for the exercises:Install Claude CodePython with uvThe Hollowbrook ticket data

By the end of this lesson you can

  • Write a learning problem as inputs, label, metric and decision, and say whether it is classification or regression
  • Compute the majority-class baseline and a keyword-rule baseline on the ticket data and report accuracy and per-class recall
  • Explain with numbers why class imbalance makes accuracy misleading
  • Describe two ways upstream data problems surface as model failures, and say which columns of a dataset may never be inputs and why
  • State the inputs, label, metric and baseline for an LLM evaluation task

On this page

  • From a request to a learning problem
  • The data you actually have
  • Where the labels come from
  • Data cascades
  • Baselines: what a model has to beat
  • The majority class
  • A hand-written rule
  • The same four parts for LLM work
  • Connections
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01From a request to a learning problem
  2. 02The data you actually have
  3. 03Baselines: what a model has to beat
  4. 04The same four parts for LLM work
  5. 05Connections
  6. 06Summary

Sources & further reading

  • Hidden Technical Debt in Machine Learning SystemsPaper · Sculley et al. · Google · 2015Why the model is the small part of a machine learning system. Read the sections on data dependencies and on feedback loops; both are about the columns in this lesson.
  • "Everyone wants to do the model work, not the data work": Data Cascades in High-Stakes AIPaper · Sambasivan et al. · Google · 2021Interviews with practitioners on how data problems compound downstream. The four cascade types in the findings section are the ones to remember.
  • Are We Really Making Much Progress? A Worrying Analysis of Recent Neural Recommendation ApproachesPaper · Ferrari Dacrema, Cremonesi, Jannach · 2019Evidence that tuned simple baselines beat most of the neural methods published at top venues over several years. Section 4 has the comparisons.
  • Pervasive Label Errors in Test Sets Destabilize Machine Learning BenchmarksPaper · Northcutt, Athalye, Mueller · 2021Labels are data too. Section 3 measures label errors in ten well-known test sets, and section 5 shows how they change which model looks best.
  • Rules of Machine Learning: Best Practices for ML EngineeringLab research · Zinkevich · GoogleRules 1 to 4 (launch without machine learning, design the metric first, a simple model first) and rule 7 (turn heuristics into features) are the baseline-first argument from inside a large engineering organisation.
  • An Introduction to Statistical Learning with Applications in PythonBook · James, Witten, Hastie, Tibshirani, Taylor · 2023Chapter 2 defines statistical learning, the distinction between prediction and inference, and how accuracy is assessed. Free PDF on the site.
  • sklearn.dummy.DummyClassifierDocs · scikit-learnThe majority-class and stratified baselines as one line of code, for when you want them inside a scikit-learn pipeline.
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 6 more sections
  • 3 hands-on exercises
  • A 7-question quiz
  • Progress, quiz scores and bookmarks