This document imports Python libraries for working with dataframes, machine learning models, and data visualization. It loads Titanic passenger data, splits it into training and test sets, trains a logistic regression model to predict survival using passenger attributes, and evaluates the model's accuracy on the test set.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
45 views1 page
LOGISTIC REGRESSION (Using Python)
This document imports Python libraries for working with dataframes, machine learning models, and data visualization. It loads Titanic passenger data, splits it into training and test sets, trains a logistic regression model to predict survival using passenger attributes, and evaluates the model's accuracy on the test set.