The document outlines a Python script that utilizes the Iris dataset for logistic regression analysis. It includes loading the dataset, converting it to a pandas DataFrame, printing statistical details for each species, splitting the data into training and testing sets, fitting a logistic regression model, and calculating the model's accuracy. The final output displays the accuracy of the predictions made on the test set.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
10 views1 page
Ass1 SetB2
The document outlines a Python script that utilizes the Iris dataset for logistic regression analysis. It includes loading the dataset, converting it to a pandas DataFrame, printing statistical details for each species, splitting the data into training and testing sets, fitting a logistic regression model, and calculating the model's accuracy. The final output displays the accuracy of the predictions made on the test set.