Predicting the Survival of Titanic Passengers within MACHINE LEARNING (KNN). Dataset available on https://www.kaggle.com/datasets/ or you can downlod from here. It contains information about the passengers onboard the Titanic, including features like age, gender, fare, cabin, and survival status.
#necessary Libraryππ #NumPy (import numpy as np) for linear algebra. #Pandas (import pandas as pd) for data manipulation and analysis. #Seaborn (import seaborn as sns) for data visualization. #Matplotlib (import matplotlib. pyplot as plt) plotting and visualization.
where,
#PLotting ππ #survival Survival 0 = No, 1 = Yes #pclass Ticket class 1 = 1st, 2 = 2nd, 3 = 3rd #sex Sex #Age Age in years #sibsp # of siblings / spouses aboard the Titanic #parch # of parents / children aboard the Titanic