Machine learning Interview Questions | Glassdoor

Find jobs for machine learning

Machine learning Interview Questions

"To get a job in machine learning, you must have the programming and mathematical knowledge to create artificial intelligence that is capable of learning new tasks without being explicitly coded. In an interview you may be asked about your experience with pertinent coding languages such as Java and C++ as well as with writing algorithms. The interview will be comprised mainly of technical questions that test your knowledge of the fundamental concepts of machine learning such as data mining and signal processing."

Top Interview Questions

Sort: RelevancePopular Date

Suppose you have a matrix of numbers. How can you easily compute the sum of any rectangle (i.e. a range [row_start, row_end, col_start, col_end]) of those numbers? How would you code this?

8 Answers

It can be done in constant time by precalculating sums of some basic rectangles (extending all the way to the border of the matrix). That precalculation times time O(n) by simple dynamic programming.

Please elaborate, which "basic rectangles"? Are you recursively dividing each rectangle into 4 smaller rectangles? Precalc time for doing that is not O(n)?!?

Compute the sum of the rectangles, for all i,j, bounded by (i,j), (i,m), (n,j), (n,m), where (n,m) is the size of the matrix M. Call that sum s(i,j). You can calculate s(i,j) by dynamic programming: s(i,j) = M(i,j) + s(i+1,j) + s(i,j+1) - s(i+1,j+1). And the sum of any rectangle can be computed from s(i,j).

One or more comments have been removed.
Please see our Community Guidelines or Terms of Service for more information.

Why does one use MSE as a measure of quality. What is the scientific/mathematical reason for the same?

3 Answers

How would you design a recommendation system (like amazon)?

2 Answers

The three data structure questions are: 1. the difference between linked list and array; 2. the difference between stack and queue; 3. describe hash table.

1 Answer

Have you ever had your code formally verified?

6 Answers

Probability, conventional machine learning, deep learning, coding/algorithm, behavioral

3 Answers

Given an infinite chessboard, find shortest distance for a knight to move from position A to position B

2 Answers

Questions were all about the different machine learning algorithm, like MLP, SVM, kNN, CNN, and ... The interviewer was interesting to know how I implemented the algorithms, what type of data set (numerical or text-based) data that I used, and the accuracy that I obtained. It was no routine software engineering question about the data structures, algorithms, or programming languages at all. It was a very straightforward interview, low stressful, and friendly interview, all based on my own resume.

2 Answers

What is the relation between the log likelihood loss function for logistic regression and maximum likelihood estimation?

2 Answers

If you had multiple job offers of comparable benefits and salary and work, what would be the aspect that of one company or another that would be your final deciding factor?

2 Answers
110 of 587 Interview Questions