Skip to content
RED SAG Skills

Medium Machine Learning Engineer questions

235 questions · 10 points each for a correct first answer.

  1. 1.Scaling before splittingmedium
  2. 2.Validating a forecasting modelmedium
  3. 3.Different results every inference runmedium
  4. 4.Handling class imbalancemedium
  5. 5.Which regularisation gives sparse weightsmedium
  6. 6.Early layers stop learningmedium
  7. 7.Probabilities that cannot be trustedmedium
  8. 8.Millions of product IDs as a featuremedium
  9. 9.F1 score from a confusion matrixmedium
  10. 10.Log loss of a poor predictionmedium
  11. 11.Positive test for a rare conditionmedium
  12. 12.AUC from four scoresmedium
  13. 13.Conv output size with stride 2medium
  14. 14.Parameters in a conv layermedium
  15. 15.Reading a logistic regression weightmedium
  16. 16.Gradient of a sum of squaresmedium
  17. 17.Training loop without zero_gradmedium
  18. 18.Softmax before CrossEntropyLossmedium
  19. 19.Shape after a batched matmulmedium
  20. 20.Rows after a merge on duplicate keysmedium
  21. 21.Precision at 5 for a ranked listmedium
  22. 22.NDCG for a three-item rankingmedium
  23. 23.Effective batch size across GPUsmedium
  24. 24.Why use learning rate warmupmedium
  25. 25.Random search versus grid searchmedium
  26. 26.Initialisation for a deep ReLU networkmedium
  27. 27.Raising C in a soft-margin SVMmedium
  28. 28.Loss turns NaN in an RNNmedium
  29. 29.Scaling factor in attentionmedium
  30. 30.Trainable parameters in a LoRA adaptermedium
  31. 31.Memory for 4-bit weightsmedium
  32. 32.RAG misses exact part numbersmedium
  33. 33.Target encoding without leakagemedium
  34. 34.Several scans per patientmedium
  35. 35.Parameters in a small MLPmedium
  36. 36.Neurons that always output zeromedium
  37. 37.Activation in BERT and GPT feed-forwardsmedium
  38. 38.Softmax by handmedium
  39. 39.Adding 100 to every logitmedium
  40. 40.backward() on a vectormedium
  41. 41.What detach() doesmedium
  42. 42.torch.cat or torch.stackmedium
  43. 43.Converting an HWC imagemedium
  44. 44.Double versus float errormedium
  45. 45.Forgetting super().__init__()medium
  46. 46.GPU waits on datamedium
  47. 47.Where scheduler.step() goesmedium
  48. 48.BatchNorm statistics at test timemedium
  49. 49.What LayerNorm normalises overmedium
  50. 50.Overfit one batch firstmedium
  51. 51.Where gradient clipping goesmedium
  52. 52.Why skip connections helpmedium
  53. 53.Loss for a single-logit classifiermedium
  54. 54.Target format for CrossEntropyLossmedium
  55. 55.Two runs give different lossesmedium
  56. 56.Freezing a pretrained backbonemedium
  57. 57.torch.inference_modemedium
  58. 58.Slow first step after torch.compilemedium
  59. 59.Receptive field of three 3×3 convsmedium
  60. 60.What a 1×1 convolution doesmedium
  61. 61.Learning rates when fine-tuningmedium
  62. 62.Role of the LSTM forget gatemedium
  63. 63.Output size of a bidirectional LSTMmedium
  64. 64.Doubling the context lengthmedium
  65. 65.Why GPT uses a causal maskmedium
  66. 66.Attention without position informationmedium
  67. 67.What the KV cache storesmedium
  68. 68.Where cross-attention gets keysmedium
  69. 69.How contrastive pretraining worksmedium
  70. 70.Quantising weights to int8medium
  71. 71.Active parameters in a mixture of expertsmedium
  72. 72.Skip connections in U-Netmedium
  73. 73.Upsampling with a transposed convmedium
  74. 74.Shifting an image under a conv layermedium
  75. 75.IoU of two boxesmedium
  76. 76.Many boxes on one carmedium
  77. 77.GRU compared with LSTMmedium
  78. 78.Beam search in decodingmedium
  79. 79.What skip-gram learns frommedium
  80. 80.tanh slope from its outputmedium
  81. 81.Computing log of a sum of exponentialsmedium
  82. 82.exp of a large logit in float32medium
  83. 83.Perplexity from cross-entropymedium
  84. 84.Order of arguments in KL divergencemedium
  85. 85.Learning rate when batch size growsmedium
  86. 86.The one-cycle learning rate policymedium
  87. 87.Reading an LR range testmedium
  88. 88.Loss jumps at each epoch startmedium
  89. 89.Training loss higher than validationmedium
  90. 90.Checking a gradient numericallymedium
  91. 91.What universal approximation promisesmedium
  92. 92.Loss suddenly jumps to infmedium
  93. 93.Setting cudnn.benchmark = Truemedium
  94. 94.Loss jumps after resuming trainingmedium
  95. 95.Keeping an exponential moving average of weightsmedium
  96. 96.Reading a layer's outputmedium
  97. 97.Gradient noise and batch sizemedium
  98. 98.Tokens for a compute-optimal modelmedium
  99. 99.Using argmax inside a lossmedium
  100. 100.Gradient size of L1 and L2 lossesmedium
  101. 101.Same data order every epochmedium
  102. 102.How tensor parallelism splits a layermedium
  103. 103.DDP error about unused parametersmedium
  104. 104.Raising GPU throughput when servingmedium
  105. 105.What lora_alpha doesmedium
  106. 106.How LoRA is initialisedmedium
  107. 107.Choosing LoRA target modulesmedium
  108. 108.Training only on the responsemedium
  109. 109.Label value -100 in Hugging Facemedium
  110. 110.Packing short examples togethermedium
  111. 111.Batch size with accumulationmedium
  112. 112.Why use learning-rate warmupmedium
  113. 113.Why QLoRA uses NF4medium
  114. 114.Double quantisation in QLoRAmedium
  115. 115.What paged optimizers solvemedium
  116. 116.Adding special tokensmedium
  117. 117.Model never stops after SFTmedium
  118. 118.Quality versus quantity of SFT datamedium
  119. 119.Duplicates in training datamedium
  120. 120.Typical LoRA learning ratemedium
  121. 121.What prompt tuning trainsmedium
  122. 122.Adapters versus LoRA at inferencemedium
  123. 123.Cosine learning-rate schedulemedium
  124. 124.Evaluating a new fine-tunemedium
  125. 125.Loss for training a reward modelmedium
  126. 126.Win probability from a reward gapmedium
  127. 127.Effect of beta in DPOmedium
  128. 128.Choosing the DPO reference modelmedium
  129. 129.What makes ORPO differentmedium
  130. 130.Training on thumbs up and downmedium
  131. 131.Why GRPO is cheaper than PPOmedium
  132. 132.Rewards from automatic checksmedium
  133. 133.Clipping in the PPO objectivemedium
  134. 134.Answers grow longer after RLmedium
  135. 135.Distillation loss on logitsmedium
  136. 136.Combining label and teacher lossesmedium
  137. 137.Distilling without teacher logitsmedium
  138. 138.Why on-policy distillation helpsmedium
  139. 139.Best-of-n then fine-tunemedium
  140. 140.Optimising a proxy reward too hardmedium
  141. 141.Building preference pairsmedium
  142. 142.Chosen and rejected almost equalmedium
  143. 143.Starting point for a reward modelmedium
  144. 144.Fair pairwise LLM-as-judgemedium
  145. 145.Different rates for different layersmedium
  146. 146.Gradual unfreezingmedium
  147. 147.Classifier ignores the rare classmedium
  148. 148.Hard negatives for embeddingsmedium
  149. 149.Batch size in contrastive tuningmedium
  150. 150.DreamBooth forgets the general classmedium
  151. 151.Choosing a metric for free textmedium
  152. 152.Releasing a new adapter versionmedium
  153. 153.Hindi and Arabic use more tokensmedium
  154. 154.Synthetic examples all look alikemedium
  155. 155.Reliable JSON from a small modelmedium
  156. 156.Training a model to call toolsmedium
  157. 157.Cost of a hosted fine-tunemedium
  158. 158.Time for a self-hosted runmedium
  159. 159.Long examples cut at max lengthmedium
  160. 160.OOM after doubling sequence lengthmedium
  161. 161.Making LLM-judge scores reliablemedium
  162. 162.Training data sorted by categorymedium
  163. 163.Order of domain training stepsmedium
  164. 164.Is the fine-tune worth itmedium
  165. 165.How IA3 adapts a modelmedium
  166. 166.Removing a 3,000-token system promptmedium
  167. 167.Adding tokens for an Indic scriptmedium
  168. 168.LoRA cannot learn new tokensmedium
  169. 169.Closed-form least squaresmedium
  170. 170.Ridge penalty pushed very highmedium
  171. 171.When elastic net beats lassomedium
  172. 172.Loss for logistic regressionmedium
  173. 173.Shape of a logistic regression boundarymedium
  174. 174.Why add-one smoothing is usedmedium
  175. 175.kNN with k = 1medium
  176. 176.Feature sampling at each splitmedium
  177. 177.Rows left out of a bootstrapmedium
  178. 178.What each boosting tree learnsmedium
  179. 179.Missing values in XGBoostmedium
  180. 180.What bagging and boosting each reducemedium
  181. 181.Why k-means++ is usedmedium
  182. 182.Clusters shaped like ringsmedium
  183. 183.Soft clusters for customersmedium
  184. 184.What PCA components aremedium
  185. 185.Encoding hour of daymedium
  186. 186.Helping a linear model with a ratiomedium
  187. 187.How recursive feature elimination worksmedium
  188. 188.Preprocessing inside a pipelinemedium
  189. 189.Tuning with Optuna-style searchmedium
  190. 190.Loss that tolerates a few wild labelsmedium
  191. 191.Predicting daily order countsmedium
  192. 192.Changing the 0.5 cut-offmedium
  193. 193.Soft voting in an ensemblemedium
  194. 194.How Extra Trees differ from a forestmedium
  195. 195.IDF of a fairly rare wordmedium
  196. 196.Using text embeddings in a tabular modelmedium
  197. 197.Building a lag featuremedium
  198. 198.Using a pile of unlabelled datamedium
  199. 199.Choosing what to label nextmedium
  200. 200.Training on data that never fits in RAMmedium
  201. 201.Same inputs, different meaningmedium
  202. 202.How permutation importance worksmedium
  203. 203.Reading a partial dependence plotmedium
  204. 204.A silhouette score near zeromedium
  205. 205.Different seeds, same logistic modelmedium
  206. 206.Labels that are 10% wrongmedium
  207. 207.All one-hot columns plus an interceptmedium
  208. 208.Leave-one-out on a big datasetmedium
  209. 209.Test split for ten million rowsmedium
  210. 210.MAPE on low-selling productsmedium
  211. 211.Why use adjusted R-squaredmedium
  212. 212.ROC-AUC looks great, alerts are uselessmedium
  213. 213.Weighted F1 on imbalanced classesmedium
  214. 214.Choosing F2 instead of F1medium
  215. 215.Which class gets confusedmedium
  216. 216.Points below the diagonalmedium
  217. 217.Accuracy after temperature scalingmedium
  218. 218.Test accuracy that is too highmedium
  219. 219.Error bars on a test metricmedium
  220. 220.Hundreds of runs on one validation setmedium
  221. 221.MRR across three queriesmedium
  222. 222.Better offline, flat onlinemedium
  223. 223.Validation error still fallingmedium
  224. 224.Good overall, bad for one citymedium
  225. 225.RMSLE versus RMSEmedium
  226. 226.Negative scores from cross_val_scoremedium
  227. 227.What best_score_ meansmedium
  228. 228.Precision and recall at 0.6medium
  229. 229.Balanced accuracymedium
  230. 230.Gini coefficient in credit scoringmedium
  231. 231.Reading a MASE of 0.8medium
  232. 232.Running a model in shadow modemedium
  233. 233.Picking a threshold with a recall floormedium
  234. 234.Scoring clusters against known labelsmedium
  235. 235.Scoring invoice field extractionmedium