Devoteam interview question

Explain how logistic regression works