- Mastering Predictive Analytics with scikit:learn and TensorFlow
- Alan Fontaine
- 72字
- 2021-07-23 16:42:27
Logistic regression model
As in scikit-learn, we just import the object and then instantiate the estimator, and then pass training set X and training set Y to the fit() method. First, we will predict the test dataset and then produce the accuracy, precision, and recall scores. The following screenshot shows the code and the confusion matrix as the output:
Later, we will save these into our pandas dataframe that we just created.