# agconti/kaggle-titanic architecture

> Architecture diagram of the GitHub repository agconti/kaggle-titanic, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/agconti/kaggle-titanic
- Repository: https://github.com/agconti/kaggle-titanic

## Overview

This repository is a Titanic survival-analysis tutorial centered on an IPython notebook, with separate benchmark scripts and a small prediction helper library. The documented notebook workflow handles and explores passenger data, fits and evaluates models, visualizes results, and prepares competition output. The README documents these capabilities, but the notebook itself was not sampled, so its internal calls and exact data handoffs are not verified; the edges below reflect only documented workflow relationships.

Main entry points: [`Titanic.ipynb`](https://github.com/agconti/kaggle-titanic/blob/master/Titanic.ipynb) (Clean and explore), [`data/train.csv`](https://github.com/agconti/kaggle-titanic/blob/master/data/train.csv) (Passenger data), [`data/test.csv`](https://github.com/agconti/kaggle-titanic/blob/master/data/test.csv) (Test passengers), [`KaggleAux/__init__.py`](https://github.com/agconti/kaggle-titanic/blob/master/KaggleAux/__init__.py) (KaggleAux package)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_tutorial["Notebook analysis"]
  node_notebook["Titanic notebook<br/>[Titanic.ipynb]"]
  node_passenger_data[("Passenger data<br/>[train.csv]")]
  node_test_data[("Test passengers<br/>[test.csv]")]
  node_handling["Clean and explore<br/>[Titanic.ipynb]"]
  node_visualization["Visualize data<br/>[Titanic.ipynb]"]
  node_logistic["Logit regression<br/>[Titanic.ipynb]"]
  node_svm["SVM models<br/>[Titanic.ipynb]"]
  node_forest["Random forest<br/>[Titanic.ipynb]"]
  node_validation["Cross-validation<br/>[Titanic.ipynb]"]
  node_submission["Competition output<br/>[Titanic.ipynb]"]
end

subgraph group_benchmarks["Benchmark scripts"]
  node_gender_example["Gender baseline"]
  node_class_gender_example["Class and gender"]
  node_embark_example["Embark model"]
  node_forest_example["Forest benchmark<br/>[agcfirstforest.py]"]
end

subgraph group_library["Prediction helper"]
  node_predict_helper["Model prediction<br/>[predict.py]"]
  node_aux_package["KaggleAux package<br/>[__init__.py]"]
end

node_analyst(("Analyst"))
node_kaggle(("Kaggle competition"))

node_analyst -->|"runs"| node_notebook
node_passenger_data -->|"imports"| node_handling
node_test_data -->|"imports"| node_handling
node_handling -->|"explores"| node_visualization
node_handling -->|"models"| node_logistic
node_handling -->|"models"| node_svm
node_handling -->|"models"| node_forest
node_logistic -->|"evaluates"| node_validation
node_svm -->|"evaluates"| node_validation
node_forest -->|"evaluates"| node_validation
node_validation -->|"prepares output"| node_submission
node_submission -->|"submits predictions"| node_kaggle
node_aux_package -->|"exports"| node_predict_helper

click node_notebook "https://github.com/agconti/kaggle-titanic/blob/master/Titanic.ipynb"
click node_passenger_data "https://github.com/agconti/kaggle-titanic/blob/master/data/train.csv"
click node_test_data "https://github.com/agconti/kaggle-titanic/blob/master/data/test.csv"
click node_handling "https://github.com/agconti/kaggle-titanic/blob/master/Titanic.ipynb"
click node_visualization "https://github.com/agconti/kaggle-titanic/blob/master/Titanic.ipynb"
click node_logistic "https://github.com/agconti/kaggle-titanic/blob/master/Titanic.ipynb"
click node_svm "https://github.com/agconti/kaggle-titanic/blob/master/Titanic.ipynb"
click node_forest "https://github.com/agconti/kaggle-titanic/blob/master/Titanic.ipynb"
click node_validation "https://github.com/agconti/kaggle-titanic/blob/master/Titanic.ipynb"
click node_submission "https://github.com/agconti/kaggle-titanic/blob/master/Titanic.ipynb"
click node_gender_example "https://github.com/agconti/kaggle-titanic/blob/master/Python%20Examples/agc_simp_gendermodel.py"
click node_class_gender_example "https://github.com/agconti/kaggle-titanic/blob/master/Python%20Examples/agcgenderclassmodel.py"
click node_embark_example "https://github.com/agconti/kaggle-titanic/blob/master/Python%20Examples/agc_embark_class_gender.py"
click node_forest_example "https://github.com/agconti/kaggle-titanic/blob/master/Python%20Examples/agcfirstforest.py"
click node_predict_helper "https://github.com/agconti/kaggle-titanic/blob/master/KaggleAux/predict.py"
click node_aux_package "https://github.com/agconti/kaggle-titanic/blob/master/KaggleAux/__init__.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_notebook,node_passenger_data,node_test_data,node_handling,node_visualization,node_logistic,node_svm,node_forest,node_validation,node_submission toneBlue
class node_gender_example,node_class_gender_example,node_embark_example,node_forest_example toneAmber
class node_predict_helper,node_aux_package toneMint
class node_analyst,node_kaggle toneIndigo
```

## Components

### Notebook analysis

- [Titanic notebook](https://github.com/agconti/kaggle-titanic/blob/master/Titanic.ipynb): `Titanic.ipynb`
- [Passenger data](https://github.com/agconti/kaggle-titanic/blob/master/data/train.csv): `data/train.csv`
- [Test passengers](https://github.com/agconti/kaggle-titanic/blob/master/data/test.csv): `data/test.csv`
- [Clean and explore](https://github.com/agconti/kaggle-titanic/blob/master/Titanic.ipynb): `Titanic.ipynb`
- [Visualize data](https://github.com/agconti/kaggle-titanic/blob/master/Titanic.ipynb): `Titanic.ipynb`
- [Logit regression](https://github.com/agconti/kaggle-titanic/blob/master/Titanic.ipynb): `Titanic.ipynb`
- [SVM models](https://github.com/agconti/kaggle-titanic/blob/master/Titanic.ipynb): `Titanic.ipynb`
- [Random forest](https://github.com/agconti/kaggle-titanic/blob/master/Titanic.ipynb): `Titanic.ipynb`
- [Cross-validation](https://github.com/agconti/kaggle-titanic/blob/master/Titanic.ipynb): `Titanic.ipynb`
- [Competition output](https://github.com/agconti/kaggle-titanic/blob/master/Titanic.ipynb): `Titanic.ipynb`

### Benchmark scripts

- [Gender baseline](https://github.com/agconti/kaggle-titanic/blob/master/Python%20Examples/agc_simp_gendermodel.py): `Python Examples/agc_simp_gendermodel.py`
- [Class and gender](https://github.com/agconti/kaggle-titanic/blob/master/Python%20Examples/agcgenderclassmodel.py): `Python Examples/agcgenderclassmodel.py`
- [Embark model](https://github.com/agconti/kaggle-titanic/blob/master/Python%20Examples/agc_embark_class_gender.py): `Python Examples/agc_embark_class_gender.py`
- [Forest benchmark](https://github.com/agconti/kaggle-titanic/blob/master/Python%20Examples/agcfirstforest.py): `Python Examples/agcfirstforest.py`

### Prediction helper

- [Model prediction](https://github.com/agconti/kaggle-titanic/blob/master/KaggleAux/predict.py): `KaggleAux/predict.py`
- [KaggleAux package](https://github.com/agconti/kaggle-titanic/blob/master/KaggleAux/__init__.py): `KaggleAux/__init__.py`

### Other components

- **Analyst**
- **Kaggle competition**

## Connections

- Analyst → Titanic notebook: runs (evidence: `ReadMe.md`)
- Passenger data → Clean and explore: imports (evidence: `ReadMe.md`)
- Test passengers → Clean and explore: imports (evidence: `ReadMe.md`)
- Clean and explore → Visualize data: explores (evidence: `ReadMe.md`)
- Clean and explore → Logit regression: models (evidence: `ReadMe.md`)
- Clean and explore → SVM models: models (evidence: `ReadMe.md`)
- Clean and explore → Random forest: models (evidence: `ReadMe.md`)
- Logit regression → Cross-validation: evaluates (evidence: `ReadMe.md`)
- SVM models → Cross-validation: evaluates (evidence: `ReadMe.md`)
- Random forest → Cross-validation: evaluates (evidence: `ReadMe.md`)
- Cross-validation → Competition output: prepares output (evidence: `ReadMe.md`)
- Competition output → Kaggle competition: submits predictions (evidence: `ReadMe.md`)
- KaggleAux package → Model prediction: exports (evidence: `KaggleAux/__init__.py`)
