Given a model $\hat{y_i} = F(x_i \hat{\beta}) + \epsilon_i$,
where F is some mapping function that could be, for example, the sigmoid function, and x is a row vector of your features
I see that Likelihood $\ell = \prod_{i | y_i=0}^N F(-(x_i\hat{\beta})) * \prod_{i | y_i=1}^N 1-F(-(x_i\hat{\beta}))$
But why would the inputs inside the F be negative? And also, if we are changing the i's for each product, why is it necessary to do $ 1 - F(-(x_i\hat{\beta})) $ instead of just $ F(-(x_i\hat{\beta})) $?