Skip to main content
Home › Blog › #ml
Tag

#ml

18 articles
What is cross-validation and why is it better than a single train-test split?

Cross-validation trains and evaluates a model multiple times on different subsets of data giving a more reliable estimate of generalization performance especially for small datasets. The most common form is…

🏷️
How do you design an ML feature store and why does it matter for production ML?

A feature store is a centralized repository for ML features that solves the training-serving skew problem by ensuring features computed at training time are computed identically at serving time. It…

🏷️
What is the difference between precision recall and F1 score — and when does each matter?

Precision is the fraction of positive predictions that are actually positive. Recall is the fraction of actual positives that were correctly identified. F1 is their harmonic mean. Which matters depends…

🏷️
What is gradient boosting and how does it differ from Random Forest?

Gradient boosting builds trees sequentially each correcting the errors of the previous. Random Forest builds trees in parallel independently. Gradient boosting typically achieves higher accuracy but is slower to train…

🏷️
What is word embedding and how does Word2Vec or similar models create semantic representations?

Word embeddings are dense numerical vectors representing words where semantically similar words have similar vectors. Word2Vec trains a neural network to predict surrounding words (skip-gram) or predict a word from…

🏷️
What is feature leakage and why is it one of the most dangerous mistakes in production ML?

Feature leakage (data leakage) is when information from the future or from the target variable is included in the training features causing artificially high training metrics that completely fail to…

🏷️
Can you explain how you would approach fine-tuning a language model for a specific task and how retrieval-augmented generation (RAG) fits into that process?

To fine-tune a language model for a specific task, I would first gather a relevant dataset and preprocess it to fit the model’s input format. Retrieval-augmented generation enhances this by…

🏷️
What is model drift and how do you detect and handle it in production ML systems?

Model drift is the degradation of model performance over time as the real-world data distribution changes after deployment. Detect with monitoring (input distribution prediction distribution and ground truth metrics). Handle…

🏷️
What is overfitting and how do you detect and prevent it?

Overfitting is when a model learns the training data too well — including its noise — and performs poorly on new data. Detect it by comparing training and validation accuracy.…

🏷️
What is the vanishing gradient problem and how do modern architectures solve it?

During backpropagation in deep networks gradients shrink exponentially as they propagate backward through many layers making early layers learn very slowly or not at all. Solutions include ReLU activations batch…

🏷️
What is the difference between batch gradient descent stochastic gradient descent and mini-batch gradient descent?

Batch GD computes gradients on the entire dataset — slow but stable. Stochastic GD (SGD) computes gradients on one example — fast but noisy. Mini-batch GD computes on a subset…

🏷️
What is the difference between supervised and unsupervised learning?

Supervised learning trains on labeled data (input-output pairs). Unsupervised learning finds patterns in unlabeled data with no predefined outputs.

🏷️
2,000 Interview Questions and Answers PDF cover
Developer Interview Kit · PDF

2,000 Interview Questions & Answers, in one PDF

  • Short answers, in-depth explanations, common mistakes and follow-ups
  • 89 topics, from Beginner to Architect, with a clickable contents list
  • 226 extra questions that are not on this website
  • Free Bonus Pack: 30-day study plan, behavioral questions, salary scripts
$7.99 one-time · instant email delivery
260 Developer Learning Paths cover
Also available: 260 Developer Learning Paths $4.99 Week-by-week roadmaps for 16 career tracks (Python, React, Java, DevOps, SQL, AI and more), with a progress tracker on every path. See what's inside →

Get both books for $9.99 (save $2.99):

The material stays free to read online. This is the organised, offline, print-ready PDF edition. Secure payment by PayPal; your personal download link is emailed after payment is confirmed. Digital product, no shipping.