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.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
25 views
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.