Facebook Pixel

How do you handle class imbalance in datasets?

By oversampling minority classes (SMOTE), undersampling majority classes, or using class weights in the loss function.

Verify This Answer

Cross-check this information using these trusted sources:

More FAQs in Top 30 AI and Machine Learning Interview Questions

A model with high bias underfits data, while a model with high variance overfits. You must find the balance that minimizes total error.

L1 (Lasso) shrinks weights to zero creating sparse models. L2 (Ridge) shrinks weights close to zero preventing dominant features.

By providing factual reference texts directly in the prompt, telling the model to limit its answers to the provided context.

Still have questions?

Browse all our FAQs or reach out to our support team

Want to upskill yourself?

Our courses are taking a Coffee break, but your curiosity shouldn't. Stay engaged with namastedev linkedin, youtube, discord and other resources while you wait.

0
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.