Skip to content

Internship interviews

Machine learning internship interviews: the topics, with worked problems

A machine learning internship interview gives you four areas you can prepare: how data is prepared and split, how a model is chosen and trained, how it is evaluated, and how you explain a project of your own. Below is a map of those fundamentals with where to read each, three worked evaluation problems with computed answers and a way to talk through your own project.

Your first hour with George Li (60 minutes by video, $250) ends with a written plan within one working day.

Book your first hour ($250)

What the rounds are, as programs state them

Our programs dataset records the steps each program’s own page states. 15 of the 42 AI-family programs in the dataset state any steps, and they are short: an application, sometimes an assessment, and one or more interviews. None of those pages says what a round asks, so prepare for each step as a format, not as a list of questions.

Steps stated by the 15 AI-family programs that state them
ProgramSteps as the page states them
Adobe ResearchUse the Apply to Internships link to Adobe's careers site
Capital OneA recruiter reviews your experience and contacts you, then Some programs require an online assessment, then Job fit, behavioral and case interviews, by program, then The recruiter reaches out with a decision
CoinbaseSelect a preferred team when you apply
Dropbox90 minute CodeSignal assessment, then Recruiter interview, 20 minutes, then Virtual technical interviews, then Final round interview
FigmaChoose the engineering areas you prefer when you apply
GoogleApply on the posting with a resume, then Attach a current transcript in English
Google DeepMindFind opportunities on the Google careers page, then Apply for your degree level (BS, MS or PhD) and location, then One application is considered for all relevant AI team positions
IBMFind a requisition on the IBM careers search, then Apply to roles whose basic qualifications you meet, then Assessment if the requisition has one, then Recruiter contact for next steps
Jump TradingApply through the form on the posting at Jump's careers site
Microsoft ResearchOpen the posting for the lab and role you want, then Apply through the Microsoft careers page it links
NVIDIA ResearchApply through the posting a lab page links, then Or email the lab's team lead as its page says
NetflixApply on the job site once a role is open, then Take-home assessment, then Two to three rounds of interviews
RampTechnical assessment, then Phone screen, then Evaluation interviews in open book format
Riot GamesApply to one role, then Recruiter screen, then Specialized interviews, then Offer
Two SigmaApplication, then Technical interview, then Behavioral interview

A program whose page lists no steps still has them, so read the page for your role and ask the recruiter which rounds to expect. The rest of this page prepares you for the subjects a machine learning round can reach, without guessing which questions will come.

A fundamentals map: data, models, training, evaluation

Four areas, what to be able to explain and where to read
AreaWhat you should be able to say in plain wordsWhere to read
DataHow you would check a dataset before modeling, handle numerical and categorical columns and split it so the test rows stay unseenGoogle’s Machine Learning Crash Course, the modules on working with numerical data and categorical data
ModelsWhat linear regression, logistic regression and a neural network each predict and what each assumesThe Crash Course modules on linear regression, logistic regression and neural networks; the supervised learning topics in Stanford’s CS229
TrainingWhat overfitting is, how it shows up and what you change when a model fits training rows far better than new onesThe Crash Course module on datasets, generalization and overfitting; the bias and variance topics listed on the CS229 course page
EvaluationWhich metric fits the problem, what a split or a cross-validation fold is for and why the test rows are used onceThe scikit-learn user guide on model evaluation metrics and on cross-validation

The Crash Course also has modules on embeddings, large language models, production systems and fairness. They are worth a read if the posting names them, but they sit beyond the four areas above. The CS229 course page describes a broad introduction that runs from supervised learning through unsupervised learning and learning theory to reinforcement learning, which shows how wide the field is and why a round must pick a small part of it.

Worked problem 1: precision, recall and accuracy from counts

A classifier is run on 200 cases. It finds 40 true positives, 10 false positives, 20 false negatives and 130 true negatives. Find precision, recall, F1 and accuracy.

The scikit-learn guide puts the ideas in words: precision is the classifier’s ability not to label as positive a sample that is negative, and recall is its ability to find all the positive samples. F1 is the harmonic mean of the two, so it is high only when both are.

The four numbers, computed from the counts above
MeasureFormulaAnswerAs a percentage
Precisiontrue positives ÷ (true positives + false positives) = 40 ÷ 504/580%
Recalltrue positives ÷ (true positives + false negatives) = 40 ÷ 602/366.7%
F12 × true positives ÷ (2 × true positives + false positives + false negatives) = 80 ÷ 1108/1172.7%
Accuracy(true positives + true negatives) ÷ all cases = 170 ÷ 20017/2085%

The numbers on this page are computed by the page’s code from the counts it prints, so a change to a count changes every answer with it. Say the sentence a listener needs after the arithmetic: of the cases the classifier flagged, four in five were right, and of the cases that were positive, it found two in three.

Worked problem 2: when accuracy hides the problem

A dataset has 1000 cases and only 10 are positive. A model that predicts negative for every case is right on 990 of them. Its accuracy is 99/100, or 99%. Its recall is 0, since it finds none of the 10 positives, and its precision has no value, because it never predicts a positive.

The lesson to say aloud is that a high accuracy on rare events can come from a model that does nothing. When a positive is rare or costly to miss, report recall, precision or both, and say which error is worse in the setting you are describing.

Worked problem 3: moving the threshold

A model scores 60 positive cases. At a strict threshold it finds 30 of them and raises 5 false alarms. At a looser threshold it finds 50 of them and raises 25 false alarms.

The same model at two thresholds, computed from the counts
ThresholdTrue positivesFalse positivesFalse negativesPrecisionRecall
Strict305306/7 (85.7%)1/2 (50%)
Looser5025102/3 (66.7%)5/6 (83.3%)

Recall rose and precision fell. That is the usual tradeoff, and the scikit-learn guide notes that a precision-recall curve is built by varying a decision threshold. An answer that names the tradeoff and says how you would choose a point on it, by the cost of each kind of error, is stronger than a single number.

Splits and folds, with the sizes worked out

The scikit-learn guide explains that learning a model’s parameters and testing it on the same data is a methodological mistake, because a model that repeated the labels it had seen would score perfectly and still fail on new data. Its example holds out 40% of 150 rows: 90 rows to train and 60 to test. The guide adds that tuning settings against the test rows can leak knowledge of them into the model, so a separate validation set is held out, or cross-validation is used.

The sizes in a split and in cross-validation
SetupTraining rowsHeld-out rowsFits
One split, 40% held out of 15090601
5-fold cross-validation of 150 rows120 in each fit30 in each fold5

Explaining your own machine learning project

A project you built is a likely topic, so prepare it in five parts and say them in order:

  1. The problem: what you tried to predict or find, and why it mattered to someone.
  2. The data: where it came from, how large it was and what you cleaned or left out.
  3. The model: what you tried first as a simple baseline, what you chose after it and why.
  4. The evaluation: how you split the data, which metric you used and why that metric fits the problem.
  5. What went wrong: one thing that failed, what you learned and what you would change with more time.

Be ready for the plain follow-ups: what would happen with ten times the data, which choice you are least sure of and how you checked that the test rows stayed unseen. An honest answer about a limit in your project is better than a confident answer that falls apart on the next question.

The coding part

A machine learning process may include a coding round, and the program pages above state little about it. Arrays, loops and counting are safe things to practice, since other software rounds use them too. Work the problems on the coding and complexity practice page, and for numbers and tables, practice reading a small array or matrix by hand before you code it. The AI internship guide covers the field and the calendar.

Questions

What topics should I study for a machine learning internship interview?

Study data preparation and splits, how common models work, training and overfitting, and evaluation metrics. Also prepare to explain one project of your own.

Why is accuracy not enough to judge a classifier?

When positives are rare, a model that predicts negative every time scores high accuracy and finds nothing. Report recall, precision or both, and say which error costs more.

What is the difference between precision and recall?

Precision is the share of flagged cases that are truly positive. Recall is the share of all positive cases that were found.

How a session helps

In an hour ($250) George can ask you the follow-up questions on your project, work a metric problem aloud with you and mark where an explanation was vague. You write every word and say every answer yourself. Your first purchase is refundable for unused time within 7 days.

Want help with your own applications? See internship interview coaching, a career coach for college internships, or resume review for internships.

Start with one hour

  • Your first purchase is refundable for unused time within 7 days. Nothing renews. Refund terms