Machine Learning Interview Questions 2023
4 min readJul 11, 2023
As per my recent Interview experience I have created a list of questions on various Machine Learning Sections. This list will comprise of just questions, I am planning to write a separate blog post for all the answers.
Machine Learning Interview Questions
- What is Regression?
- What are the Types of regression?
- Explain the assumptions of Linear regression.
- How to evaluate regression models?
- Explain different types of model Testing methods.
- Explain Benefits of cross validation?
- What is overfitting?
- What are different ways to fix overfitting?
- How to handle imbalanced data in a dataset?
- What to do if your data is skewed?
- What if your data has outliers, how to identify and different ways to fix?
- What is difference between lasso and ridge regression?
- What is cross entropy?
- Difference between precision and recall?
- What is a confusion matrix?
- What is AUC?
- What is bias variance trade-off?
- What is correlation? How is it related to covariance?
- What are activation function? Explain different Types? Where and why it is used? Sigmoid vs tan h vs relu?
- What is classification?
- How to evaluate classification models?
- What are ensemble models?
- What is clustering?
- What are types of clustering?
- How to decide the K in k means clustering? Can we automate it? If yes how?
- What is hypothesis testing?
- What is A/B testing?
- How does time series work? Explain how to approach a time series problem step by step.
- How do you treat seasonality in time series?
- What to do if your time series data is not stationary?
- Difference between ARIMA and SARIMA?
- What is auto correlation?
- Can we use deep learning for time series forecasting? If yes what models to use? How do they work?
- What is null hypothesis?
NLP Questions
- What is word embedding in NLP? Types of embedding? Best one to use ?
- What is N-grams?
- What is bag of words model?
- What is named entity recognition? Is it a classification or regression model?
- How to approach a named entity recognition problem?
- How to handle large data size in case of a NER?
- What is transformer architecture?
- How does BERT works? explain Architecture ?
- What is attention ? Why is it important?
- How to create a model similar to BERT manually?
- What is LLM? How are they designed?
- In which cases LLMs are disadvantagous?
- What are benefits of LLM?
- How does ChatGPT (Any Generative AI chatbot) remember previous text messages?
- Where should you use open source models like falcon, llama over ChatGPT?
- How does LLM like chatgpt work in the background?
- Can we create a Private LLM like ChatGPT that can Work only on Prem devices? If yes how?
- How to Fine Tune LLM?
- How does ChatGPT generate text response? Can it generate without any manual intervention? If yes how?
- Let’s say you have created a chatbot. How would you test it? Can you test it without launching to the customers?
- How to design conversations in a chatbot?
- How does dialogflow or rasa work in designing chatbots?
- How to evaluate a chatbot?
- What metrics to use to monitor a chatbot performance once it’s live?
- How the chatbot knows what the user is saying and make a response?
- Let’s say you need to generate caption from an input image? How would you design? What steps and models to use? How image embedding works? How an image is converted to generate text input?
- What is topic modelling? What steps and models to use? If given a text data corpus of conversations, how would you generate topic from a unlabeled unsorted data corpus?
- What is sentiment analysis? How to approach? Models to use? How to evaluate?
- How can we create prompt templates and use them in LLMs?
- How vector storage/DBs are used to store information in LLMs?
Other ML Questions
I haven’t been asked these following questions yet. I am adding them to cover other important topics.
- What is RNN? Where is it used? Drawbacks of RNN?
- What is vanishing gradient problem and where does it occurs? How to fix?
- What is LSTM? How does it works? Explain LSTM architecture?
- What is bagging and boosting? Explain xgboost?
- Why do we need an optimizer? Explain Adam optimizer?
- What is LDA in ML?
- What is PCA? Why do we use? What alternatives are there?
- What is pruning in decision trees?
- What is back propagation?
- What is gradient decent?
- What is bootstrapping?
- What is conditional probability?
- What is word2vec?
- What is seq2seq and encoder decoder Neural Networks?
I will keep updating this list further. Thanks for Reading.