Reina Y.

asked • 04/17/23

In python. We are using the Iris dataset

Now, it's your turn to make a Logistic Regression model, an ROC curve, and calculate some basic metrics.

IMPORTANT: This time, do all model training with all four predictors, and instead of predicting if the species is or is not Iris Setosa, predict whether a species is or is not Iris Versicolor.

In the following cell, build your training/testing data (based off of the original split into train/test data), fit the logistic model, and make a confusion matrix.

Finally, report, using predictions on the testing data:

  1. The model accuracy as the variable acc
  2. Sensitivity as TPR
  3. Specifity as TNR


1 Expert Answer

By:

Cong P. answered • 04/26/23

Tutor
5 (8)

Data Scientist / Tutor / PhD in Computer Science

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.