This is my first Machine Learning project.
In this project, I built a Machine Learning model to predict whether a passenger survived the Titanic disaster.
Supervised Learning - Classification
- Python
- Pandas
- Scikit-learn
- Decision Tree Classifier
- Sex
- Passenger Class
- Age
- Fare
- Siblings/Spouse
- Parents/Children
1→ Survived0→ Not Survived
- Load the Titanic dataset
- Explore the dataset
- Check missing values
- Handle missing values
- Encode categorical data
- Select features and target
- Split data into training and testing data
- Train the Decision Tree model
- Make predictions
- Calculate accuracy
- Test the model with a new passenger
Decision Tree Classifier
Anandkumar Chaurasiya
B.Tech AI & ML Student