## 3.10 Training logistic regression with Scikit-Learn [Slides](https://www.slideshare.net/AlexeyGrigorev/ml-zoomcamp-3-machine-learning-for-classification) ## Notes This video was about training a logistic regression model with Scikit-Learn, applying it to the validation dataset, and calculating its accuracy. **Classes, functions, and methods:** * `LogisticRegression().fit(x)` - Scikit-Learn class for training the logistic regression model. * `LogisticRegression().coef_[0]` - return the coefficients or weights of the LR model * `LogisticRegression().intercept_[0]` - return the bias or intercept of the LR model * `LogisticRegression().predict[x]` - make predictions on the x dataset * `LogisticRegression().predict_proba[x]` - make predictions on the x dataset by returning two columns with their probabilities for the two categories - soft predictions The entire code of this project is available in [this jupyter notebook](https://github.com/DataTalksClub/machine-learning-zoomcamp/blob/master/03-classification/notebook.ipynb).
⚠️ The notes are written by the community.
If you see an error here, please create a PR with a fix.
* [Notes from Peter Ernicke](https://knowmledge.com/2023/09/30/ml-zoomcamp-2023-machine-learning-for-classification-part-10/) ## Navigation * [Machine Learning Zoomcamp course](../) * [Session 3: Machine Learning for Classification](./) * Previous: [Logistic regression](09-logistic-regression.md) * Next: [Model interpretation](11-log-reg-interpretation.md)