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_transform(x)
- Scikit-Learn class for calculating the logistic regression model.LogisticRegression().coef_[0]
- returns the coeffcients or weights of the LR modelLogisticRegression().intercept_[0]
- returns the bias or intercept of the LR modelLogisticRegression().predict[x]
- make predictions on the x datasetLogisticRegression().predict_proba[x]
- make predictions on the x dataset, and returns two columns with their probabilities for the two categories - soft predictions
The entire code of this project is available in this jupyter notebook.
The notes are written by the community. If you see an error here, please create a PR with a fix. |