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.

42 Moderate KNN AI / ML

How does the curse of dimensionality hurt KNN?

Short take Full answer on next page

Simple meaning

In high dimensions, distances concentrate and nearest neighbors stop being truly near.

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

Read full answer Example · Mistake · Say this
43 Moderate KNN AI / ML

What is the benefit of distance-weighted KNN?

Short take Full answer on next page

Simple meaning

Closer neighbors can vote more than far ones, which softens the effect of a clumsy K.

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

Read full answer Example · Mistake · Say this
44 Moderate Clustering AI / ML

What is the silhouette score?

Short take Full answer on next page

Simple meaning

Silhouette compares how close a point is to its own cluster versus the next nearest cluster.

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

Read full answer Example · Mistake · Say this
45 Moderate Clustering AI / ML

How does DBSCAN differ from K-means?

Short take Full answer on next page

Simple meaning

DBSCAN grows clusters from dense neighborhoods and labels sparse points as noise.

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

Read full answer Example · Mistake · Say this
48 Moderate PCA AI / ML

How do you choose the number of principal components?

Short take Full answer on next page

Simple meaning

Look at the explained-variance ratio and keep components until a target such as 90 or 95 percent is reached.

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

Read full answer Example · Mistake · Say this
49 Moderate PCA AI / ML

When should you use PCA instead of feature selection?

Short take Full answer on next page

Simple meaning

PCA is better when many correlated numeric features share a low-dimensional subspace and you mainly need compression.

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

Read full answer Example · Mistake · Say this
50 Moderate PCA AI / ML

Why might PCA hurt a tree-based model?

Short take Full answer on next page

Simple meaning

Trees split on original features and can ignore irrelevant axes without rotation.

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

Read full answer Example · Mistake · Say this
51 Moderate Feature Engineering AI / ML

What is target encoding and how can it leak?

Short take Full answer on next page

Simple meaning

Target encoding replaces a category with a statistic of y, such as the mean label.

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

Read full answer Example · Mistake · Say this
52 Moderate Feature Engineering AI / ML

How do you encode high-cardinality categoricals?

Short take Full answer on next page

Simple meaning

One-hot becomes huge, so people use target encoding, hashing, embeddings, or frequency encoding.

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

Read full answer Example · Mistake · Say this
53 Moderate Feature Engineering AI / ML

When do interaction features help?

Short take Full answer on next page

Simple meaning

Interactions help linear and logistic models capture AND-style effects they cannot learn from main effects alone.

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

Read full answer Example · Mistake · Say this
55 Moderate Imbalanced Data AI / ML

What is SMOTE and what are its risks?

Short take Full answer on next page

Simple meaning

SMOTE builds synthetic minority points by interpolating between a minority row and its neighbors.

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

Read full answer Example · Mistake · Say this
59 Moderate sklearn Pipeline AI / ML

What is ColumnTransformer used for?

Short take Full answer on next page

Simple meaning

ColumnTransformer applies different transformers to different column subsets in one step.

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

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