This document loads and prepares the Titanic dataset for machine learning modeling. It splits the data into training and test sets, fits a support vector machine (SVM) model to predict survival using the training set, makes predictions on the test set, and evaluates the model's performance by printing the confusion matrix and accuracy score.
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)
61 views1 page
SVM (Using Python)
This document loads and prepares the Titanic dataset for machine learning modeling. It splits the data into training and test sets, fits a support vector machine (SVM) model to predict survival using the training set, makes predictions on the test set, and evaluates the model's performance by printing the confusion matrix and accuracy score.