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:

  • $\begingroup$ Hi Vadym! Have a look at this article https://machinelearningmastery.com/logistic-regression-for-machine-learning/. $\endgroup$
    – nbro
    Apr 8 '19 at 16:18
  • $\begingroup$ nbro. Thank you, your link is really useful. $\endgroup$
    – Vadym
    Apr 8 '19 at 16:35
  • $\begingroup$ Hi Vadym again! You can post answer to your own question, rather than editing your question to add an answer to it. If you have time, I would also add more details to your answer, rather than just links :) $\endgroup$
    – nbro
    Apr 8 '19 at 20:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.