# garcia-786/isro_launch_success_predictor architecture

> Architecture diagram of the GitHub repository garcia-786/isro_launch_success_predictor, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/garcia-786/isro_launch_success_predictor
- Repository: https://github.com/garcia-786/isro_launch_success_predictor

## Overview

This is a small Streamlit launch-success prediction app. A user selects launch details and a success threshold; the app loads and preprocesses launch data, splits it, trains a RandomForest classifier, and displays a prediction. It also evaluates the model on held-out data and shows outcome visualizations. The README documents a separate EDA helper. The tree places the Python modules at the repository root, despite the README describing them under scripts/.

Main entry points: [`app.py`](https://github.com/garcia-786/isro_launch_success_predictor/blob/main/app.py) (Streamlit app), [`preprocess.py`](https://github.com/garcia-786/isro_launch_success_predictor/blob/main/preprocess.py) (Load and clean), [`model.py`](https://github.com/garcia-786/isro_launch_success_predictor/blob/main/model.py) (RandomForest model), [`eda.py`](https://github.com/garcia-786/isro_launch_success_predictor/blob/main/eda.py) (EDA plot helper)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["User interaction"]
  node_streamlit_app["Streamlit app<br/>[app.py]"]
  node_prediction["Interactive prediction<br/>[app.py]"]
end

subgraph group_modeling["Data and modeling"]
  node_launch_data["Launch CSV"]
  node_data_loading["Load and clean<br/>[preprocess.py]"]
  node_feature_encoding["One-hot encoding<br/>[preprocess.py]"]
  node_train_test_split["Train/test split<br/>[app.py]"]
  node_model_training["Model training<br/>[model.py]"]
  node_random_forest["RandomForest model<br/>[model.py]"]
end

subgraph group_insights["Evaluation and insights"]
  node_evaluation["Test-set evaluation<br/>[app.py]"]
  node_metric_display["Metrics and matrix<br/>[app.py]"]
  node_outcome_chart["Outcome histogram<br/>[app.py]"]
  node_eda_helper["EDA plot helper<br/>[eda.py]"]
end

node_user(("User"))

node_user -->|"uses"| node_streamlit_app
node_streamlit_app -->|"loads"| node_launch_data
node_streamlit_app -->|"calls"| node_data_loading
node_data_loading -->|"reads"| node_launch_data
node_data_loading -->|"cleans then encodes"| node_feature_encoding
node_streamlit_app -->|"splits data"| node_train_test_split
node_streamlit_app -->|"calls"| node_model_training
node_model_training -->|"fits"| node_random_forest
node_streamlit_app -->|"handles inputs"| node_prediction
node_prediction -->|"predicts with"| node_random_forest
node_streamlit_app -->|"evaluates"| node_evaluation
node_evaluation -->|"predicts with"| node_random_forest
node_evaluation -->|"computes"| node_metric_display
node_evaluation -->|"plots"| node_outcome_chart
node_user -.->|"can use"| node_eda_helper

click node_streamlit_app "https://github.com/garcia-786/isro_launch_success_predictor/blob/main/app.py"
click node_data_loading "https://github.com/garcia-786/isro_launch_success_predictor/blob/main/preprocess.py"
click node_feature_encoding "https://github.com/garcia-786/isro_launch_success_predictor/blob/main/preprocess.py"
click node_train_test_split "https://github.com/garcia-786/isro_launch_success_predictor/blob/main/app.py"
click node_model_training "https://github.com/garcia-786/isro_launch_success_predictor/blob/main/model.py"
click node_random_forest "https://github.com/garcia-786/isro_launch_success_predictor/blob/main/model.py"
click node_prediction "https://github.com/garcia-786/isro_launch_success_predictor/blob/main/app.py"
click node_evaluation "https://github.com/garcia-786/isro_launch_success_predictor/blob/main/app.py"
click node_metric_display "https://github.com/garcia-786/isro_launch_success_predictor/blob/main/app.py"
click node_outcome_chart "https://github.com/garcia-786/isro_launch_success_predictor/blob/main/app.py"
click node_eda_helper "https://github.com/garcia-786/isro_launch_success_predictor/blob/main/eda.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_streamlit_app,node_prediction,node_user toneBlue
class node_launch_data,node_data_loading,node_feature_encoding,node_train_test_split,node_model_training,node_random_forest toneAmber
class node_evaluation,node_metric_display,node_outcome_chart,node_eda_helper toneMint
```

## Components

### User interaction

- [Streamlit app](https://github.com/garcia-786/isro_launch_success_predictor/blob/main/app.py): `app.py`
- [Interactive prediction](https://github.com/garcia-786/isro_launch_success_predictor/blob/main/app.py): `app.py`

### Data and modeling

- **Launch CSV**
- [Load and clean](https://github.com/garcia-786/isro_launch_success_predictor/blob/main/preprocess.py): `preprocess.py`
- [One-hot encoding](https://github.com/garcia-786/isro_launch_success_predictor/blob/main/preprocess.py): `preprocess.py`
- [Train/test split](https://github.com/garcia-786/isro_launch_success_predictor/blob/main/app.py): `app.py`
- [Model training](https://github.com/garcia-786/isro_launch_success_predictor/blob/main/model.py): `model.py`
- [RandomForest model](https://github.com/garcia-786/isro_launch_success_predictor/blob/main/model.py): `model.py`

### Evaluation and insights

- [Test-set evaluation](https://github.com/garcia-786/isro_launch_success_predictor/blob/main/app.py): `app.py`
- [Metrics and matrix](https://github.com/garcia-786/isro_launch_success_predictor/blob/main/app.py): `app.py`
- [Outcome histogram](https://github.com/garcia-786/isro_launch_success_predictor/blob/main/app.py): `app.py`
- [EDA plot helper](https://github.com/garcia-786/isro_launch_success_predictor/blob/main/eda.py): `eda.py`

### Other components

- **User**

## Connections

- User → Streamlit app: uses (evidence: `README.md`)
- Streamlit app → Launch CSV: loads (evidence: `app.py`)
- Streamlit app → Load and clean: calls (evidence: `app.py`)
- Load and clean → Launch CSV: reads (evidence: `preprocess.py`)
- Load and clean → One-hot encoding: cleans then encodes (evidence: `preprocess.py`)
- Streamlit app → Train/test split: splits data (evidence: `app.py`)
- Streamlit app → Model training: calls (evidence: `app.py`)
- Model training → RandomForest model: fits (evidence: `model.py`)
- Streamlit app → Interactive prediction: handles inputs (evidence: `app.py`)
- Interactive prediction → RandomForest model: predicts with (evidence: `app.py`)
- Streamlit app → Test-set evaluation: evaluates (evidence: `app.py`)
- Test-set evaluation → RandomForest model: predicts with (evidence: `app.py`)
- Test-set evaluation → Metrics and matrix: computes (evidence: `app.py`)
- Test-set evaluation → Outcome histogram: plots (evidence: `app.py`)
- User → EDA plot helper: can use (evidence: `README.md`)
