AI / ML track

AI and machine learning interview questions

Panel-ready AI & Data Analytics questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.

81 Moderate Train/Val/Test AI / ML

What is data leakage in a train and test setup?

Short take Full answer on next page

Simple meaning

Leakage is any path that lets information from the evaluation set, or from the future, into training.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
82 Moderate Train/Val/Test AI / ML

How should you split time-series data?

Short take Full answer on next page

Simple meaning

Use chronological cuts so training always precedes validation and test.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
84 Moderate Metrics AI / ML

What is ROC-AUC and what does it ignore?

Short take Full answer on next page

Simple meaning

ROC-AUC is the probability that a random positive scores higher than a random negative.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
86 Moderate Metrics AI / ML

What does a confusion matrix contain?

Short take Full answer on next page

Simple meaning

It counts true positives, false positives, true negatives, and false negatives at a chosen threshold.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
87 Moderate Metrics AI / ML

What is log loss and when is it preferred?

Short take Full answer on next page

Simple meaning

Log loss, or binary cross-entropy, penalizes confident wrong probabilities heavily.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
88 Moderate Linear Regression AI / ML

What is R-squared and what can it hide?

Short take Full answer on next page

Simple meaning

R-squared is the fraction of variance in y explained by the model.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
92 Moderate Logistic Regression AI / ML

What loss does logistic regression minimize?

Short take Full answer on next page

Simple meaning

It minimizes log loss, which is the negative log likelihood of a Bernoulli model.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
95 Moderate Logistic Regression AI / ML

When does logistic regression struggle?

Short take Full answer on next page

Simple meaning

It struggles with strongly nonlinear decision surfaces unless you add interactions or basis functions.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
96 Moderate Decision Trees AI / ML

What is pruning a decision tree?

Short take Full answer on next page

Simple meaning

Pruning removes branches that add little validated gain so the tree does not memorize noise.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
100 Moderate Random Forest AI / ML

What is out-of-bag error in a random forest?

Short take Full answer on next page

Simple meaning

Each tree is trained on a bootstrap sample, so some rows are left out of that tree.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
Prev Page 5 of 12 Next
Chat with us