Skip to content
tezvyn:

🤖AI & ML

Artificial intelligence, machine learning, and data science

615 bites

Test yourself: Top 30 intermediate AI & ML interview questionsMultiple choice, with the correct answer and why it is correct on every question. Free, no sign-in.

Intermediate everything in AI & ML, page 26

intermediate2 min read

Scikit-learn's Universal API: Fit, Predict, Transform

The scikit-learn Estimator API is a universal contract: .fit() to learn, .predict() to guess, and .transform() to change data. It's used for everything from StandardScaler to RandomForestClassifier.

Groupby: The Split-Apply-Combine Strategy
intermediate2 min read

Groupby: The Split-Apply-Combine Strategy

Groupby operations let you split data into groups, apply a function to each, and combine the results. It's how you answer 'what's the average salary per department?' The footgun is using a slow custom .apply() function when a faster built-in method exists.

Matplotlib's Object-Oriented API: Explicit Plot Control
intermediate2 min read

Matplotlib's Object-Oriented API: Explicit Plot Control

Instead of the stateful plt.plot(), Matplotlib's OO API gives you explicit control by creating Figure and Axes objects to call methods on, like ax.plot(). This is crucial for complex plots with multiple subplots. The footgun is mixing styles.

intermediate2 min read

Chain Rule: Unpacking Nested Rates of Change

The chain rule is like Russian nesting dolls for rates of change. To find the derivative of a nested function, you multiply the derivatives of the 'outer' and 'inner' functions. It's the engine behind backpropagation in neural networks.

intermediate2 min read

Gradient Descent: Finding the Bottom of the Hill

Think of finding the lowest point on a foggy hill by taking steps in the steepest downward direction. It's how machine learning models learn, by iteratively minimizing a cost function. The footgun is the step size: too large overshoots, too small is too slow.

intermediate2 min read

Eigenvectors and Eigenvalues: The Unchanging Directions of a Transformation

Eigenvectors are the special vectors a transformation only stretches, not rotates; the eigenvalue is the stretch factor. They're the backbone of PCA for dimensionality reduction and Google's PageRank.

Matrices: The Language of Linear Transformations
intermediate2 min read

Matrices: The Language of Linear Transformations

A matrix is a grid of numbers representing a linear transformation, like stretching or rotating space. It's used in graphics to move 3D models and in machine learning to hold data. The footgun: don't just see numbers; see the transformation it encodes.

intermediate2 min read

Hypothesis Testing: A Courtroom for Your Data

Hypothesis testing is a courtroom trial for a claim. You assume 'no effect' (the null hypothesis) and see if your data is strong enough to reject it. The footgun is misreading the p-value: it only measures evidence against the null, not for your alternative.

intermediate2 min read

Linear Regression: Finding the Line of Best Fit

Linear regression draws the 'line of best fit' through your data to predict outcomes. It's used to estimate continuous values, like forecasting sales based on ad spend or predicting a house's price from its size. The main footgun: correlation is not causation.

intermediate2 min read

Bayes' Theorem: Updating Beliefs with Evidence

Bayes' Theorem updates your belief in a cause after seeing new evidence. It's used in medical diagnostics to interpret test results and in spam filters. The common footgun is ignoring the base rate—how likely the cause was *before* the evidence appeared.

Issue Trees: Deconstruct Problems, Not Symptoms
intermediate2 min read

Issue Trees: Deconstruct Problems, Not Symptoms

An issue tree maps a problem's potential root causes. It's used in consulting and debugging to break down vague questions like 'Why is revenue down?' into testable hypotheses.

Leading vs. Lagging Indicators: Predict the Future or Report the Past?
intermediate2 min read

Leading vs. Lagging Indicators: Predict the Future or Report the Past?

Leading indicators are predictive inputs (like sales calls made) that forecast future results. Lagging indicators are outputs (like quarterly revenue) that report what already happened.

North Star Metric: Aligning Your Team With One Metric
intermediate2 min read

North Star Metric: Aligning Your Team With One Metric

A North Star Metric (NSM) is the single number that best captures the core value your product delivers, acting as a compass for your team. It aligns everyone on a shared goal, like Spotify using 'Time Spent Listening.' The biggest footgun is not having one.

intermediate1 min read

Hypothesis-Driven Analysis: Ask First, Analyze Second

Start with a specific question, then use data to find a clear yes/no answer. This approach is perfect for A/B testing or diagnosing metric changes, but watch out for confirmation bias—seeking data that only proves your initial belief.

intermediate2 min read

The MECE Principle: No Overlaps, No Gaps

The MECE principle structures analysis with 'no overlaps, no gaps.' Use it to break down problems, segment users, or plan projects. The footgun is achieving one rule (exclusive categories) but not the other (covering all cases), leading to flawed conclusions.

Non-Maximum Suppression: One Box Per Object
intermediate2 min read

Non-Maximum Suppression: One Box Per Object

Non-Maximum Suppression (NMS) ensures each detected object gets just one bounding box. It sorts all proposed boxes by confidence, keeps the best one, and discards others that overlap it too much.

intermediate2 min read

Image Convolution: A Sliding Feature Detector

An image convolution is a sliding filter that scans an image to detect features like edges or textures. It's the core building block of modern computer vision, used in image classification and object detection.

Neural Network Pruning: Making Models Smaller and Faster
intermediate2 min read

Neural Network Pruning: Making Models Smaller and Faster

Neural network pruning makes models smaller and faster by removing unimportant connections, like trimming a bonsai tree. It's essential for deploying large models on devices with limited memory, like phones.

intermediate2 min read

Meta-Learning: Learning How to Learn

Meta-learning is 'learning to learn.' Instead of training on data, it learns from the performance of other models, using metadata from experiments to improve the learning process itself. This helps algorithms become more flexible and solve new problems faster.

3D Object Detection: Seeing in Depth, Not Just Pixels
intermediate2 min read

3D Object Detection: Seeing in Depth, Not Just Pixels

3D object detection adds depth to a 2D flat view, understanding an object's true size, distance, and orientation. It's vital for autonomous cars and robotics that need spatial awareness.

We are hiring for this. Every open role lists the topics its interview covers, so you can prepare for the real thing rather than guessing.

See open roles