Logistic regression model from scratch with Python. From cost function to gradient everything is done from scatch. Latter on we compared our model with Sklearn's Logistic Regression model. Check out the code.
For explanation visit my article: https://www.analyticsvidhya.com/blog/2022/02/implementing-logistic-regression-from-scratch-using-python/