# davidstrif/team3_goodweather architecture

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

- Interactive diagram: https://gitdiagram.com/davidstrif/team3_goodweather
- Repository: https://github.com/davidstrif/team3_goodweather

## Overview

This repository documents a bakery-revenue prediction project: prepare historical data, fit regression and neural-network models, and produce predictions. The README identifies feature engineering, a linear-regression baseline, neural-network evaluation, and the third neural-network version as the best reported model (MAPE 20.26%). The tree also shows separate data-preparation notebooks and saved prediction files. No source excerpts were provided, so connections beyond the README’s documented training-and-prediction workflow are omitted; directory-level nodes represent unsampled components.

Main entry points: [`3_Model/neural_net_estimation_3.0.ipynb`](https://github.com/davidstrif/team3_goodweather/blob/main/3_Model/neural_net_estimation_3.0.ipynb) (Neural-net estimation), [`1_DatasetCharacteristics/processed_data`](https://github.com/davidstrif/team3_goodweather/tree/main/1_DatasetCharacteristics/processed_data) (Prepared datasets), [`2_BaselineModel/linear_regression.ipynb`](https://github.com/davidstrif/team3_goodweather/blob/main/2_BaselineModel/linear_regression.ipynb) (Linear regression), [`3_Model/neural_net_predictions_2018-2019_3.0.csv`](https://github.com/davidstrif/team3_goodweather/blob/main/3_Model/neural_net_predictions_2018-2019_3.0.csv) (Neural-net predictions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data preparation"]
  node_rawdata[("Historical datasets")]
  node_merge["Data merging"]
  node_missing["Missing values"]
  node_features["Feature engineering"]
  node_split["Dataset splitting"]
  node_visualize["Feature visualization"]
  node_processed[("Prepared datasets")]
end

subgraph group_models["Modeling"]
  node_baseline["Linear regression"]
  node_nnprep["Neural-net preparation"]
  node_evaluation["Model evaluation"]
  node_nnmodel["Neural-net estimation"]
  node_savedmodel["Saved model"]
end

subgraph group_results["Predictions"]
  node_baselinepred["Baseline predictions"]
  node_nnpred["Neural-net predictions"]
end

node_team(("Project team"))

node_team -->|"develops"| node_baseline
node_team -->|"develops"| node_nnmodel
node_processed -.->|"trains on"| node_baseline
node_processed -.->|"trains on"| node_nnmodel
node_nnmodel -.->|"predicts"| node_nnpred

click node_rawdata "https://github.com/davidstrif/team3_goodweather/tree/main/1_DatasetCharacteristics/raw_data"
click node_merge "https://github.com/davidstrif/team3_goodweather/blob/main/1_DatasetCharacteristics/notebooks/01_data_merge.ipynb"
click node_missing "https://github.com/davidstrif/team3_goodweather/blob/main/1_DatasetCharacteristics/notebooks/02_missing_values_adrian.ipynb"
click node_features "https://github.com/davidstrif/team3_goodweather/blob/main/1_DatasetCharacteristics/notebooks/03_feature_engeneering.ipynb"
click node_split "https://github.com/davidstrif/team3_goodweather/blob/main/1_DatasetCharacteristics/notebooks/04_dataset_split(linear%20regression).ipynb"
click node_visualize "https://github.com/davidstrif/team3_goodweather/blob/main/1_DatasetCharacteristics/notebooks/05_feature_visualisation.ipynb"
click node_processed "https://github.com/davidstrif/team3_goodweather/tree/main/1_DatasetCharacteristics/processed_data"
click node_baseline "https://github.com/davidstrif/team3_goodweather/blob/main/2_BaselineModel/linear_regression.ipynb"
click node_nnprep "https://github.com/davidstrif/team3_goodweather/blob/main/3_Model/neural_net_data_preparation.ipynb"
click node_evaluation "https://github.com/davidstrif/team3_goodweather/blob/main/3_Model/model_definition_evaluation.ipynb"
click node_nnmodel "https://github.com/davidstrif/team3_goodweather/blob/main/3_Model/neural_net_estimation_3.0.ipynb"
click node_savedmodel "https://github.com/davidstrif/team3_goodweather/blob/main/3_Model/good_weather_model.h5"
click node_baselinepred "https://github.com/davidstrif/team3_goodweather/blob/main/2_BaselineModel/linear_regression_submission.csv"
click node_nnpred "https://github.com/davidstrif/team3_goodweather/blob/main/3_Model/neural_net_predictions_2018-2019_3.0.csv"

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_rawdata,node_merge,node_missing,node_features,node_split,node_visualize,node_processed toneBlue
class node_baseline,node_nnprep,node_evaluation,node_nnmodel,node_savedmodel toneAmber
class node_baselinepred,node_nnpred toneMint
class node_team toneIndigo
```

## Components

### Data preparation

- [Historical datasets](https://github.com/davidstrif/team3_goodweather/tree/main/1_DatasetCharacteristics/raw_data): `1_DatasetCharacteristics/raw_data`
- [Data merging](https://github.com/davidstrif/team3_goodweather/blob/main/1_DatasetCharacteristics/notebooks/01_data_merge.ipynb): `1_DatasetCharacteristics/notebooks/01_data_merge.ipynb`
- [Missing values](https://github.com/davidstrif/team3_goodweather/blob/main/1_DatasetCharacteristics/notebooks/02_missing_values_adrian.ipynb): `1_DatasetCharacteristics/notebooks/02_missing_values_adrian.ipynb`
- [Feature engineering](https://github.com/davidstrif/team3_goodweather/blob/main/1_DatasetCharacteristics/notebooks/03_feature_engeneering.ipynb): `1_DatasetCharacteristics/notebooks/03_feature_engeneering.ipynb`
- [Dataset splitting](https://github.com/davidstrif/team3_goodweather/blob/main/1_DatasetCharacteristics/notebooks/04_dataset_split(linear%20regression).ipynb): `1_DatasetCharacteristics/notebooks/04_dataset_split(linear regression).ipynb`
- [Feature visualization](https://github.com/davidstrif/team3_goodweather/blob/main/1_DatasetCharacteristics/notebooks/05_feature_visualisation.ipynb): `1_DatasetCharacteristics/notebooks/05_feature_visualisation.ipynb`
- [Prepared datasets](https://github.com/davidstrif/team3_goodweather/tree/main/1_DatasetCharacteristics/processed_data): `1_DatasetCharacteristics/processed_data`

### Modeling

- [Linear regression](https://github.com/davidstrif/team3_goodweather/blob/main/2_BaselineModel/linear_regression.ipynb): `2_BaselineModel/linear_regression.ipynb`
- [Neural-net preparation](https://github.com/davidstrif/team3_goodweather/blob/main/3_Model/neural_net_data_preparation.ipynb): `3_Model/neural_net_data_preparation.ipynb`
- [Model evaluation](https://github.com/davidstrif/team3_goodweather/blob/main/3_Model/model_definition_evaluation.ipynb): `3_Model/model_definition_evaluation.ipynb`
- [Neural-net estimation](https://github.com/davidstrif/team3_goodweather/blob/main/3_Model/neural_net_estimation_3.0.ipynb): `3_Model/neural_net_estimation_3.0.ipynb`
- [Saved model](https://github.com/davidstrif/team3_goodweather/blob/main/3_Model/good_weather_model.h5): `3_Model/good_weather_model.h5`

### Predictions

- [Baseline predictions](https://github.com/davidstrif/team3_goodweather/blob/main/2_BaselineModel/linear_regression_submission.csv): `2_BaselineModel/linear_regression_submission.csv`
- [Neural-net predictions](https://github.com/davidstrif/team3_goodweather/blob/main/3_Model/neural_net_predictions_2018-2019_3.0.csv): `3_Model/neural_net_predictions_2018-2019_3.0.csv`

### Other components

- **Project team**

## Connections

- Project team → Linear regression: develops (evidence: `README.md`)
- Project team → Neural-net estimation: develops (evidence: `README.md`)
- Prepared datasets → Linear regression: trains on
- Prepared datasets → Neural-net estimation: trains on
- Neural-net estimation → Neural-net predictions: predicts
