# How can the bias and the coefficient be calculated in logistic regression?

How can the bias, $$b_0$$, and the coefficient for the single input value, $$b_1$$, be calculated in logistic regression?

I am trying to calculate these coefficients with pure Python.

Can anybody provide some example or formulas?

PS: Problem was solved with:

• Hi Vadym! Have a look at this article https://machinelearningmastery.com/logistic-regression-for-machine-learning/. – nbro Apr 8 '19 at 16:18