Skip to content

Add Titanic solution by emmanuelakwasi#218

Open
emmanuelakwasi wants to merge 1 commit into
gimseng:masterfrom
emmanuelakwasi:titanicSolution
Open

Add Titanic solution by emmanuelakwasi#218
emmanuelakwasi wants to merge 1 commit into
gimseng:masterfrom
emmanuelakwasi:titanicSolution

Conversation

@emmanuelakwasi

@emmanuelakwasi emmanuelakwasi commented Jun 5, 2026

Copy link
Copy Markdown

What does this implement/fix? Explain your changes.

Added a Titanic Survival Prediction solution for exercise 001.

What I did:

  • Explored and visualised the data with 7 charts
  • Cleaned missing values (Age, Embarked, Fare)
  • Engineered new features (AgeGroup)
  • Tested 6 classification models with 5-fold cross validation

Results:

Model CV Accuracy
Gradient Boosting 82.04%
Random Forest 81.04%
Decision Tree 79.91%
Logistic Regression 79.46%
K-Nearest Neighbors 75.43%
Support Vector Machine 66.90%

Best model: Gradient Boosting at 82.04% CV accuracy

Libraries used:

pandas, numpy, matplotlib, seaborn, scikit-learn

Any other comments?

Open to feedback and suggestions for improvement!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant