# Machine learning engineer intern Interview Questions

# 52

Machine Learning Engineer Intern interview questions shared by candidates### Write a function to find the intersection between two arrays.

1 Answers↳

there are many ways to write this function. If we want just to use native python language we can do : def inter(l1, l2): l3 = [v for v in l1 if v in l2] return l3 or we can for example use the intersection function like : def inter(l1, l2): l3 = set(l1).intersection(l2) return l3 Less

### How to identify and deal with overfitting and underfitting

1 Answers↳

A model is over-fitting when you see the epoch to become 100% accurate or more. to deal with it you can simplify the model by reducing the parameters, for example reduce the convolution neural networks or dropouts. A model is under-fitting when you see the losses do not reduce. Deal it with feeding the model with more data, do back propagation, switching to a non linear model from a linear one, adding hidden layers, convolution neural networks, and random dropouts. Less