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.

22 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
25 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
26 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
30 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
31 Moderate Random Forest AI / ML

How does max_features affect a random forest?

Short take Full answer on next page

Simple meaning

A smaller feature subset at each split makes trees more diverse and usually lowers correlation among them.

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

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

How do Extra Trees differ from a random forest?

Short take Full answer on next page

Simple meaning

Extremely randomized trees pick split thresholds more randomly, not just the feature subset.

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

Read full answer Example · Mistake · Say this
34 Moderate Boosting AI / ML

Explain gradient boosting at a high level.

Short take Full answer on next page

Simple meaning

Gradient boosting fits each new tree to the gradient of the loss with respect to the current ensemble prediction.

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

Read full answer Example · Mistake · Say this
35 Moderate Boosting AI / ML

What does the learning rate do in boosting?

Short take Full answer on next page

Simple meaning

The learning rate shrinks each new tree's contribution so later trees correct more gently.

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

Read full answer Example · Mistake · Say this
36 Moderate Boosting AI / ML

How does AdaBoost differ from gradient boosting?

Short take Full answer on next page

Simple meaning

AdaBoost reweights training rows so misclassified points get more attention in the next weak learner.

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

Read full answer Example · Mistake · Say this
40 Moderate SVM AI / ML

When is an RBF kernel a poor idea?

Short take Full answer on next page

Simple meaning

RBF SVMs scale badly with n because they depend on many support vectors.

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

Read full answer Example · Mistake · Say this
Prev Page 2 of 4 Next
Chat with us