Q1. What is the bias-variance tradeoff?
Bias is error from overly simple assumptions; a high-bias model underfits and misses patterns in both training and test data. Variance is error from sensitivity to the tr...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (14 available).
Bias is error from overly simple assumptions; a high-bias model underfits and misses patterns in both training and test data. Variance is error from sensitivity to the tr...
Supervised learning uses labelled examples, learning a mapping from inputs to known outputs. Tasks include classification (predict a category, such as spam or not) and re...
Class imbalance means one class is far rarer, so accuracy becomes misleading and models favor the majority. Strategies: - Resampling: oversample the minority (SMOTE synth...
Overfitting is when a model learns noise and idiosyncrasies of the training set instead of the underlying pattern. It performs well on training data but poorly on new dat...
Precision is the fraction of predicted positives that are truly positive: TP / (TP + FP). Recall, or sensitivity, is the fraction of actual positives that were found: TP ...
Cross-validation repeatedly splits data into training and validation folds to estimate how well a model generalizes. In k-fold, the data is split into k parts; the model ...
Regularization adds a penalty on model complexity to the loss, discouraging large weights and reducing overfitting. L2 (ridge) adds the sum of squared weights. It shrinks...
Gradient descent minimizes a loss function by repeatedly moving parameters in the direction that decreases the loss. The gradient is the vector of partial derivatives, an...
Choose metrics that match the problem. - MAE: mean absolute error, in the target's units, robust to outliers. - MSE and RMSE: penalize large errors more; RMSE is in targe...
Both are tree ensembles, differing in how trees are combined. Random forest builds many deep, independent trees on bootstrap samples with random feature subsets, then ave...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.