# jihoo1018/data-mini-project architecture

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

- Interactive diagram: https://gitdiagram.com/jihoo1018/data-mini-project
- Repository: https://github.com/jihoo1018/data-mini-project

## Overview

This repository is a battery cycle-life regression analysis project, not a deployed prediction service. The documented workflow prepares battery data, explores early-cycle features, then uses the resulting feature table to select and evaluate a model: Batch 1 drives policy-grouped cross-validation and hold-out checks, while Batch 2 is evaluated once with the design fixed. EDA outputs and detailed modeling records preserve the analysis. The README documents notebook responsibilities and data flow; sampled source confirms extraction and modeling helpers, but notebook internals were not inspected.

Main entry points: [`notebooks/02_DAY2_Modeling.ipynb`](https://github.com/jihoo1018/data-mini-project/blob/main/notebooks/02_DAY2_Modeling.ipynb) (Modeling notebook), [`notebooks/01_DAY1_EDA.ipynb`](https://github.com/jihoo1018/data-mini-project/blob/main/notebooks/01_DAY1_EDA.ipynb) (EDA notebook), [`src/preprocess.py`](https://github.com/jihoo1018/data-mini-project/blob/main/src/preprocess.py) (Cache preparation), [`results/battery_eda`](https://github.com/jihoo1018/data-mini-project/tree/main/results/battery_eda) (EDA results)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data preparation"]
  node_battery_data["Battery data"]
  node_preprocess["Cache preparation<br/>[preprocess.py]"]
  node_cache["Batch cache"]
end

subgraph group_eda["Exploratory analysis"]
  node_eda_notebook["EDA notebook<br/>[01_DAY1_EDA.ipynb]"]
  node_eda_extract["Feature extraction<br/>[battery_eda.py]"]
  node_eda_results["EDA results"]
  node_hypothesis["Hypothesis analysis"]
end

subgraph group_model["Model development"]
  node_model_notebook["Modeling notebook"]
  node_features["Cell features<br/>[cell_features.csv]"]
  node_model_helpers["Modeling helpers<br/>[modeling_utils.py]"]
  node_cv["Grouped validation"]
  node_selection["Model selection"]
  node_batch2_eval["Batch 2 evaluation"]
end

subgraph group_results["Results and interpretation"]
  node_model_records["Evaluation records"]
  node_predictions["Predictions and reports"]
end

node_analyst(("Analyst"))

node_analyst -->|"prepares data"| node_preprocess
node_battery_data -->|"reads batches"| node_preprocess
node_preprocess -->|"writes cache"| node_cache
node_analyst -->|"runs analysis"| node_eda_notebook
node_eda_notebook -->|"reads raw data"| node_battery_data
node_eda_notebook -->|"creates features"| node_eda_results
node_eda_extract -.->|"extracts features"| node_eda_results
node_analyst -->|"checks hypotheses"| node_hypothesis
node_analyst -->|"runs modeling"| node_model_notebook
node_features -->|"supplies inputs"| node_model_notebook
node_model_notebook -->|"runs group CV"| node_cv
node_model_notebook -->|"selects model"| node_selection
node_model_notebook -->|"evaluates once"| node_batch2_eval
node_model_notebook -->|"saves records"| node_model_records
node_model_notebook -->|"writes outputs"| node_predictions
node_model_helpers -.->|"supports analysis"| node_model_notebook

click node_preprocess "https://github.com/jihoo1018/data-mini-project/blob/main/src/preprocess.py"
click node_cache "https://github.com/jihoo1018/data-mini-project/tree/main/data"
click node_eda_notebook "https://github.com/jihoo1018/data-mini-project/blob/main/notebooks/01_DAY1_EDA.ipynb"
click node_eda_extract "https://github.com/jihoo1018/data-mini-project/blob/main/src/battery_eda.py"
click node_eda_results "https://github.com/jihoo1018/data-mini-project/tree/main/results/battery_eda"
click node_hypothesis "https://github.com/jihoo1018/data-mini-project/blob/main/notebooks/02_hypothesis_H1_H2.ipynb"
click node_model_notebook "https://github.com/jihoo1018/data-mini-project/blob/main/notebooks/02_DAY2_Modeling.ipynb"
click node_features "https://github.com/jihoo1018/data-mini-project/blob/main/results/battery_eda/cell_features.csv"
click node_model_helpers "https://github.com/jihoo1018/data-mini-project/blob/main/src/modeling_utils.py"
click node_cv "https://github.com/jihoo1018/data-mini-project/blob/main/notebooks/02_DAY2_Modeling.ipynb"
click node_selection "https://github.com/jihoo1018/data-mini-project/blob/main/notebooks/02_DAY2_Modeling.ipynb"
click node_batch2_eval "https://github.com/jihoo1018/data-mini-project/blob/main/notebooks/02_DAY2_Modeling.ipynb"
click node_model_records "https://github.com/jihoo1018/data-mini-project/tree/main/results/modeling"
click node_predictions "https://github.com/jihoo1018/data-mini-project/tree/main/outputs"

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_battery_data,node_preprocess,node_cache toneBlue
class node_eda_notebook,node_eda_extract,node_eda_results,node_hypothesis toneAmber
class node_model_notebook,node_features,node_model_helpers,node_cv,node_selection,node_batch2_eval toneMint
class node_model_records,node_predictions toneRose
class node_analyst toneIndigo
```

## Components

### Data preparation

- **Battery data**
- [Cache preparation](https://github.com/jihoo1018/data-mini-project/blob/main/src/preprocess.py): `src/preprocess.py`
- [Batch cache](https://github.com/jihoo1018/data-mini-project/tree/main/data): `data`

### Exploratory analysis

- [EDA notebook](https://github.com/jihoo1018/data-mini-project/blob/main/notebooks/01_DAY1_EDA.ipynb): `notebooks/01_DAY1_EDA.ipynb`
- [Feature extraction](https://github.com/jihoo1018/data-mini-project/blob/main/src/battery_eda.py): `src/battery_eda.py`
- [EDA results](https://github.com/jihoo1018/data-mini-project/tree/main/results/battery_eda): `results/battery_eda`
- [Hypothesis analysis](https://github.com/jihoo1018/data-mini-project/blob/main/notebooks/02_hypothesis_H1_H2.ipynb): `notebooks/02_hypothesis_H1_H2.ipynb`

### Model development

- [Modeling notebook](https://github.com/jihoo1018/data-mini-project/blob/main/notebooks/02_DAY2_Modeling.ipynb): `notebooks/02_DAY2_Modeling.ipynb`
- [Cell features](https://github.com/jihoo1018/data-mini-project/blob/main/results/battery_eda/cell_features.csv): `results/battery_eda/cell_features.csv`
- [Modeling helpers](https://github.com/jihoo1018/data-mini-project/blob/main/src/modeling_utils.py): `src/modeling_utils.py`
- [Grouped validation](https://github.com/jihoo1018/data-mini-project/blob/main/notebooks/02_DAY2_Modeling.ipynb): `notebooks/02_DAY2_Modeling.ipynb`
- [Model selection](https://github.com/jihoo1018/data-mini-project/blob/main/notebooks/02_DAY2_Modeling.ipynb): `notebooks/02_DAY2_Modeling.ipynb`
- [Batch 2 evaluation](https://github.com/jihoo1018/data-mini-project/blob/main/notebooks/02_DAY2_Modeling.ipynb): `notebooks/02_DAY2_Modeling.ipynb`

### Results and interpretation

- [Evaluation records](https://github.com/jihoo1018/data-mini-project/tree/main/results/modeling): `results/modeling`
- [Predictions and reports](https://github.com/jihoo1018/data-mini-project/tree/main/outputs): `outputs`

### Other components

- **Analyst**

## Connections

- Analyst → Cache preparation: prepares data
- Battery data → Cache preparation: reads batches (evidence: `src/preprocess.py`)
- Cache preparation → Batch cache: writes cache (evidence: `src/preprocess.py`)
- Analyst → EDA notebook: runs analysis (evidence: `README.md`)
- EDA notebook → Battery data: reads raw data (evidence: `README.md`)
- EDA notebook → EDA results: creates features (evidence: `README.md`)
- Feature extraction → EDA results: extracts features
- Analyst → Hypothesis analysis: checks hypotheses (evidence: `README.md`)
- Analyst → Modeling notebook: runs modeling (evidence: `README.md`)
- Cell features → Modeling notebook: supplies inputs (evidence: `README.md`)
- Modeling notebook → Grouped validation: runs group CV (evidence: `README.md`)
- Modeling notebook → Model selection: selects model (evidence: `README.md`)
- Modeling notebook → Batch 2 evaluation: evaluates once (evidence: `README.md`)
- Modeling notebook → Evaluation records: saves records (evidence: `README.md`)
- Modeling notebook → Predictions and reports: writes outputs (evidence: `README.md`)
- Modeling helpers → Modeling notebook: supports analysis
