Easy Machine Learning Engineer questions
168 questions · 5 points each for a correct first answer.
- 1.Big gap between train and validation accuracymodel-evaluation, overfittingeasy
- 2.Why keep a separate test setmodel-evaluation, data-splittingeasy
- 3.Which model needs feature scalingfeature-engineering, feature-scalingeasy
- 4.Definition of precisionclassification-metricseasy
- 5.Symptom of a learning rate that is too highoptimisation, training-debuggingeasy
- 6.Encoding a city featurefeature-engineering, categorical-encodingeasy
- 7.Bias and variance as complexity growsbias-varianceeasy
- 8.Accuracy on imbalanced dataclassification-metrics, imbalanced-dataeasy
- 9.Shape of a matrix productlinear-algebraeasy
- 10.Cosine similarity by handlinear-algebra, embeddingseasy
- 11.Chain rule on a squared termcalculus, gradientseasy
- 12.What sampling temperature doesllm-decodingeasy
- 13.Standard error of a sample meanstatisticseasy
- 14.What logistic regression outputslogistic-regressioneasy
- 15.k-nearest neighbours voteknneasy
- 16.What k-means minimisesclusteringeasy
- 17.Variance kept by two componentspcaeasy
- 18.Gini impurity of a nodedecision-treeseasy
- 19.Why random forests average treesensembles, random-foresteasy
- 20.ReLU applied to a vectoractivations, numpyeasy
- 21.Recall from confusion countsclassification-metricseasy
- 22.RMSE from four errorsregression-metricseasy
- 23.Broadcasting a column and a rownumpy, broadcastingeasy
- 24.Dropout after eval()pytorch, regularizationeasy
- 25.Why export a model to ONNXmodel-serving, onnxeasy
- 26.Why LLMs use subword tokenstokenization, llmeasy
- 27.What text embeddings captureembeddingseasy
- 28.Standardising a single valuefeature-scalingeasy
- 29.When early stopping triggerstraining, regularizationeasy
- 30.Optimizer steps in one epochtrainingeasy
- 31.Expected starting loss, 10 classesloss-functions, debuggingeasy
- 32.What retrieval-augmented generation addsrageasy
- 33.What data drift meansmonitoring, drifteasy
- 34.What prompt injection isllm-safetyeasy
- 35.Parameters in nn.Linear(10, 5)deep-learning, pytorch, neural-networkseasy
- 36.Why sigmoid slows deep trainingdeep-learning, activationseasy
- 37.Range of tanhdeep-learning, activationseasy
- 38.Cross-entropy loss by handdeep-learning, loss-functionseasy
- 39.Telling autograd to track a tensordeep-learning, pytorch, autogradeasy
- 40.Why wrap inference in no_graddeep-learning, pytorch, inferenceeasy
- 41.Logging loss without leaking memorydeep-learning, pytorcheasy
- 42.Feeding a single image to a CNNdeep-learning, pytorch, tensorseasy
- 43.Tensors on different devicesdeep-learning, pytorch, debuggingeasy
- 44.model(x) versus model.forward(x)deep-learning, pytorcheasy
- 45.Methods a map-style Dataset needsdeep-learning, pytorch, data-loadingeasy
- 46.Where to set shuffle=Truedeep-learning, pytorch, data-loadingeasy
- 47.Default betas in Adamdeep-learning, optimisers, pytorcheasy
- 48.Saving a trained modeldeep-learning, pytorch, checkpointingeasy
- 49.Adding weight decay to an optimiserdeep-learning, regularisation, optimiserseasy
- 50.Size after nn.Flattendeep-learning, pytorch, tensorseasy
- 51.Padding that keeps image sizedeep-learning, cnneasy
- 52.Shape after max poolingdeep-learning, cnn, pytorcheasy
- 53.Global average poolingdeep-learning, cnneasy
- 54.Preprocessing for a pretrained ResNetdeep-learning, transfer-learning, cnneasy
- 55.What ToTensor does to pixelsdeep-learning, pytorch, data-loadingeasy
- 56.Where random flips belongdeep-learning, data-augmentationeasy
- 57.What an RNN carries between stepsdeep-learning, rnneasy
- 58.The attention formuladeep-learning, attention, transformerseasy
- 59.Size of each attention headdeep-learning, attention, transformerseasy
- 60.How BERT is pretraineddeep-learning, transformers, pretrainingeasy
- 61.Size of an embedding tabledeep-learning, embeddings, pytorcheasy
- 62.Patches in a Vision Transformerdeep-learning, transformers, computer-visioneasy
- 63.Purpose of an autoencoder bottleneckdeep-learning, autoencoderseasy
- 64.Model type for ticket classificationdeep-learning, transformerseasy
- 65.Slope of the sigmoid at zerodeep-learning, maths, activationseasy
- 66.ReLU gradient below zerodeep-learning, activations, backpropagationeasy
- 67.Chain rule through two linear stepsdeep-learning, maths, backpropagationeasy
- 68.Entropy of a fair four-way choicedeep-learning, maths, probabilityeasy
- 69.Shape of a cosine LR scheduledeep-learning, learning-rate-scheduleseasy
- 70.Every weight set to zerodeep-learning, initialisationeasy
- 71.Loss crawls down very slowlydeep-learning, training, optimiserseasy
- 72.Spotting vanishing gradientsdeep-learning, debugging, gradientseasy
- 73.Up-weighting a rare classdeep-learning, loss-functions, pytorcheasy
- 74.800 labelled imagesdeep-learning, transfer-learningeasy
- 75.NaN from a hand-written log lossdeep-learning, numerical-stability, loss-functionseasy
- 76.Dropout set to 0.9deep-learning, regularisation, trainingeasy
- 77.What DDP syncs between GPUsdeep-learning, distributed-training, pytorcheasy
- 78.DataParallel or DistributedDataParalleldeep-learning, distributed-training, pytorcheasy
- 79.What full fine-tuning changesfine-tuning, transfer-learningeasy
- 80.Why begin from a pretrained modelfine-tuning, transfer-learningeasy
- 81.Training only a new headfine-tuning, transfer-learningeasy
- 82.Learning rate for fine-tuningfine-tuningeasy
- 83.Shape of SFT training datafine-tuning, sfteasy
- 84.Reading train and validation lossfine-tuning, evaluationeasy
- 85.Meaning of PEFTfine-tuning, loraeasy
- 86.What the LoRA rank r setsfine-tuning, loraeasy
- 87.Merging a LoRA adapterfine-tuning, loraeasy
- 88.What QLoRA adds to LoRAfine-tuning, qloraeasy
- 89.Choosing the tokenizerfine-tuning, tokenizationeasy
- 90.Prompt format after SFTfine-tuning, sfteasy
- 91.Purpose of instruction tuningfine-tuning, sfteasy
- 92.First step before fine-tuningfine-tuningeasy
- 93.Role of lora_dropoutfine-tuning, loraeasy
- 94.Order of classic RLHF stagesfine-tuning, rlhfeasy
- 95.What a reward model returnsfine-tuning, rlhfeasy
- 96.Format of preference datafine-tuning, preference-tuningeasy
- 97.Basic idea of distillationfine-tuning, distillationeasy
- 98.Why soft targets help a studentfine-tuning, distillationeasy
- 99.Temperature in distillationfine-tuning, distillationeasy
- 100.Training on a bigger model's answersfine-tuning, distillation, synthetic-dataeasy
- 101.Using another provider's outputsfine-tuning, synthetic-dataeasy
- 102.Labellers disagree on answersfine-tuning, preference-tuning, training-dataeasy
- 103.Meaning of RLAIFfine-tuning, rlhfeasy
- 104.Teaching safe refusalsfine-tuning, safetyeasy
- 105.What reward hacking meansfine-tuning, rlhfeasy
- 106.Purpose of the KL penaltyfine-tuning, rlhfeasy
- 107.Meaning of the alignment taxfine-tuning, rlhfeasy
- 108.Picking a student modelfine-tuning, distillationeasy
- 109.Library for SFT and DPO runsfine-tuning, toolingeasy
- 110.Adding LoRA with the PEFT libraryfine-tuning, lora, toolingeasy
- 111.Splitting a skewed label setfine-tuning, evaluation, training-dataeasy
- 112.Why save checkpointsfine-tuning, training-loopeasy
- 113.Fine-tuning BERT for classificationfine-tuning, transfer-learningeasy
- 114.Data for tuning an embedding modelfine-tuning, embeddingseasy
- 115.Speech model misses local accentsfine-tuning, domain-adaptationeasy
- 116.Teaching a domain vocabularyfine-tuning, domain-adaptationeasy
- 117.Customer data in training setsfine-tuning, training-data, privacyeasy
- 118.File format for hosted fine-tuningfine-tuning, toolingeasy
- 119.How many epochs for LLM SFTfine-tuning, hyperparameterseasy
- 120.Comparing many training runsfine-tuning, toolingeasy
- 121.Making runs repeatablefine-tuning, training-loopeasy
- 122.New classes for an image modelfine-tuning, transfer-learningeasy
- 123.Small data for a narrow taskfine-tuning, training-dataeasy
- 124.What to record for each adapterfine-tuning, mlopseasy
- 125.Early stopping patiencefine-tuning, training-loopeasy
- 126.What BitFit trainsfine-tuning, pefteasy
- 127.Predicting a flat price in rupeesmachine-learning, supervised-learningeasy
- 128.One gradient descent stepmachine-learning, gradient-descenteasy
- 129.Sigmoid at zeromachine-learning, logistic-regressioneasy
- 130.Logistic regression with five classesmachine-learning, logistic-regression, classificationeasy
- 131.The naive part of Naive Bayesmachine-learning, naive-bayeseasy
- 132.Entropy of a 50/50 nodemachine-learning, decision-treeseasy
- 133.Tree with no depth limitmachine-learning, decision-trees, overfittingeasy
- 134.Prediction after one boosting roundmachine-learning, gradient-boostingeasy
- 135.Which points shape an SVMmachine-learning, svmeasy
- 136.Label -1 in DBSCAN outputmachine-learning, clustering, dbscaneasy
- 137.Imputing missing incomemachine-learning, feature-engineering, missing-dataeasy
- 138.Scaling a feature with big outliersmachine-learning, feature-engineering, scalingeasy
- 139.Encoding education levelmachine-learning, feature-engineering, categorical-encodingeasy
- 140.Spot the bug in training codemachine-learning, scikit-learneasy
- 141.Parameter or hyperparametermachine-learning, model-trainingeasy
- 142.Degree-15 curve on 16 pointsmachine-learning, overfitting, linear-regressioneasy
- 143.What bag-of-words throws awaymachine-learning, text-featureseasy
- 144.Learning from rewardsmachine-learning, reinforcement-learningeasy
- 145.5,000 features, 300 rowsmachine-learning, curse-of-dimensionality, regularisationeasy
- 146.A movie that is several genresmachine-learning, classificationeasy
- 147.Logistic regression on XORmachine-learning, logistic-regressioneasy
- 148.Baseline for a tabular datasetmachine-learning, gradient-boosting, model-selectioneasy
- 149.How KNNImputer fills a gapmachine-learning, missing-data, scikit-learneasy
- 150.What the intercept meansmachine-learning, linear-regressioneasy
- 151.A column with one valuemachine-learning, feature-selectioneasy
- 152.Batch, stochastic or mini-batchmachine-learning, gradient-descenteasy
- 153.How often a row is validated in k-foldmodel-evaluation, cross-validationeasy
- 154.Why stratify the foldsmodel-evaluation, cross-validationeasy
- 155.Specificity by handmodel-evaluation, classification-metricseasy
- 156.The x-axis of an ROC curvemodel-evaluation, classification-metrics, roc-auceasy
- 157.MAE of three errorsmodel-evaluation, regression-metricseasy
- 158.MAPE by handmodel-evaluation, regression-metricseasy
- 159.R-squared by handmodel-evaluation, regression-metricseasy
- 160.Lowering the decision thresholdmodel-evaluation, classification-metrics, thresholdseasy
- 161.Top-5 accuracymodel-evaluation, classification-metricseasy
- 162.First number to compare againstmodel-evaluation, baselineseasy
- 163.Recall at 10 by handmodel-evaluation, ranking-metricseasy
- 164.Score versus tree depthmodel-evaluation, hyperparameter-tuningeasy
- 165.Accuracy from confusion countsmodel-evaluation, classification-metricseasy
- 166.Reporting cross-validation resultsmodel-evaluation, cross-validationeasy
- 167.Test set from a later periodmodel-evaluation, data-splitting, time-serieseasy
- 168.Checking a 90% prediction intervalmodel-evaluation, uncertainty, regression-metricseasy