ByteDance Interview Question

What is the function of logistic regression?