Question d’entretien chez Exponential AI

How does logistic regression work and what is its cost function?