Skip to content

zonggel/DS-ML-Interview-Questions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

DS-ML-Interview-Questions


Last update: 11/16/2018

This is a personal summary of common DS/ML interview questions and will be regularly updated, you are welcome to pull request or discuss the answer with me:)

To be a good DS or MLE, you have to answer most of these questions below quickly and precisely:)

Here are some books and MOOCs that may be useful for you.

MOOCs:

  • Stanford CS231n
  • Stanford CS224n
  • Coursera Deep learning specialization
  • Berkeley CS 188: Introduction to Artificial Intelligence
  • Deep Reinforcement Learning - UC Berkeley
  • Oxford Deep NLP 2017 course
  • Yida Xu's Machine Learning Course
  • IFT6266, Deep Learning, graduate class at U. Montreal

Books:

  • Pattern Recognition and Machine Learning
  • The Element of Statistical Learning
  • Machine Learning: A Probabilistic Perspective
  • Deep Learning Book
  • Reinforcement Learning: An Introduction
  • Artificial Intelligence A Modern Approach

Behavior and Background

  1. Introduce yourself.
  2. Tell me your past internship or some other projects.

Machine Learning Concept

Linear Regression and Logistic Regression

  1. What is linear regression? What is logistic regression? What is the difference?
  2. How to find the best parameter for linear regression? / How to optimize the model?
  3. Please write down the close form solution for linear regression?
  4. What is Stochastic Gradient Descent or Mini-batch Gradient Descent? What is the advantage? and disadvantages?
  5. What is mean square error? What is Cross Entropy? What is the difference? Also please write down the formular of these two cost function.
  6. What is Softmax? What is relationship between Softmax and Logistic Regression?
  7. Explain and derive the SGD for Logistic Regression and Softmax?
  8. Does global optimal can be reached by SGD, why?
  9. What is the Sigmoid function? What is the characteristic of Sigmoid? What is the advantages and disadvantages of Sigmoid function?

Regularization, Overfitting and Model/Feature Selection/Evaluation.

  1. What are L1 and L2? And their difference?
  2. From the view of Bayesian, what's the difference between L1 and L2?
  3. What is overfitting?
  4. How can you know your model is overfitted or not?
  5. What is the Bias-Variance Trade-off?
  6. How to prevent overfitting?
  7. What is cross validation?
  8. Let is consider you are training a classifier to classify the cat pictures taken by cell phone. You have 10k cat pictures that taken by cell phone users. How would you split the pictures into training/validation/test set? Now you have got 100k cat pictures from Internet, what dataset would you like to choose to put these 100k cat pictures in?
  9. For training/validation/test set, which two sets are most important that you have to keep the distribution of data samples the same?
  10. What is data augmentation? Do you know any technique to augment data?
  11. What is F1 score? What are recall and precision?
  12. What is AUC?
  13. How would you handle data imbalance problem?

Decision Tree

  1. What is Decision Tree?
  2. What is Information Gain?
  3. What is Geni Index?
  4. What is the advantages and disadvantages of ID3?
  5. What is Random Forrest?
  6. What is Bagging?

Boosting and Ensemble

  1. What is AdaBoost and the relation between Adaboost and exponential loss function?
  2. What is Gradient Boosting?
  3. What is the idea of Bagging and Stacking?
  4. Do you know XGBoost? And what is the idea of XGBoost?

Naive Bayes

  1. Write down Naive Bayes equation.
  2. Given an example, calculate designate probability by using Bayes Equation.

Unsupervised Learning

  1. What's Clustering?
  2. What's K-means? Implement K-means by Python and Numpy. What's the relationship between K-means and EM?
  3. What's the pros and cons of K-means?
  4. What's the complexity of K-means?
  5. What's PCA and SVD? Given the SVD funtion, please implement PCA.
  6. Do you know T-sne, simply explain it to me?

Graph Models

  1. What is Hidden Markov Model?
  2. What is the assumption that HMM made?
  3. There are three matrices in HMM, what are they?
  4. What is the three problems of HMM?
  5. What is the Viterbi Algorithm? And its complexity?
  6. How to optimize the parameters of HMM?
  7. In what situation you would likt to use HMM?
  8. (Bonus) What are MEMM and CRF?

Support Vector Machine

  1. What is suppor vector?
  2. What is the idea of SVM?
  3. Explain the idea of kernel method?
  4. What is the slack factor in SVM?
  5. What is the loss function of SVM?

EM

  1. What is the idea of EM algorithm?
  2. In what case we would like to use EM?

Reinforcement Learning

  1. What is the Markov Decision Process?
  2. What is the Bellman Equation?
  3. What is the Q-function.
  4. The difference between Policy Gradient and Q-learning.

Deep Learning

  1. What is the relationship between Logistic Regression and Feedforward Neural Networks?
  2. What is Sigmoid, Tanh, Relu? And their pros and cons?
  3. What are RNN, LSTM, GRU? And their pros and cons?
  4. What are gradient explosion and vanishing?
  5. What is CNN, explain the process of CNN and the idea.
  6. What is the differenct between Momentum and Adam optimizer?
  7. What is the pros and cons of Tensorflow and PyTorch?
  8. What is the compuational graph of deep learning frameworks?
  9. Why GPU can accelerate the compuation of deep learning models?
  10. Why deep learning models are powerful now?
  11. What is Batch Normalization and Layer Normalization?
  12. What is Dropout?
  13. In what case you would like to use transfer learning? How would you fine-tune the model?
  14. Do you know any techniques to initialize deep learning models?
  15. Why zero initialization is a pitfall for deep learning?
  16. Implement a single hidden layer FNN by Python and Numpy.

NLP and DL

  1. What is tf-IDF?
  2. What is word embedding and its idea? What is the difference between sampled softmax and negative sampling? Do you know the relationship between negative sampling and Pointwise Mutual Information(Bouns)
  3. What are unigram and bigram?
  4. What is the attention machanism?
  5. (Bonus) Explain LDA topic model.

Computer Vision and DL

  1. What is the difference between simple CNN and Inception Net and ResNet?
  2. What are the common techniques to preprocess the image data?
  3. What are the kernel and pooling in CNN?
  4. What is GAN, the structure and the way we train it.

Miscellaneous

  1. What is the idea of Map Reduce?

TODO: Statistic and Probability

Case Study

You are given a specific case and you need to give a solution for the problem.

Coding

SQL

  1. select, group by, left, right, inner outter join...

Python coding and concepts

  1. What is the key difference between Tuple and List?
  2. What is the list comprehension?
  3. Use ML packages to complete certain tasks.
  4. Some medium level (refer to Leetcode) coding questions.
  5. How to handle exceptions in Python.
  6. Implement K-means, KNN, Linear Regression, Logistic Regression, Simple Neural Network.

Pandas

  1. Use Pandas to manipulate data.

About

An Personal Note for DS/ML interview questions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published