A small notebook project that trains a Titanic survival model for the Titanic competition on kaggle, evaluates accuracy, and generates a Kaggle-ready submission.
titanic.ipynb: End-to-end workflow (download data, preprocess, train, evaluate, predict, submit)requirements.txt: Python dependenciesdata/titanic/: Kaggle Titanic CSV files (train/test)
- Create and activate a Python environment.
- Install dependencies:
pip install -r requirements.txtOpen titanic.ipynb and run the cells in order.
The notebook uses the Kaggle API. Make sure your Kaggle API token is configured:
- Place
kaggle.jsonin~/.kaggle/(Linux/macOS) or%USERPROFILE%\.kaggle\(Windows).
The notebook writes a submission file:
data/titanic/submission.csv