# carolinaaraujo23/swissgrid-reserve-price-forecast architecture

> Architecture diagram of the GitHub repository carolinaaraujo23/swissgrid-reserve-price-forecast, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/carolinaaraujo23/swissgrid-reserve-price-forecast
- Repository: https://github.com/carolinaaraujo23/swissgrid-reserve-price-forecast

## Overview

This repository is a Swissgrid reserve-auction price-forecasting project, but the checked-in tree contains no substantive implementation files beyond package initializers. The documented workflow starts with auction offer data, constructs marginal-price targets, engineers features, trains forecasts, evaluates them with leakage-aware walk-forward splits, and saves test-auction predictions. The graph preserves documented model families and evaluation requirements; dashed, uncited links indicate workflow connections whose implementation cannot be verified from the sampled source.

Main entry points: [`src/features`](https://github.com/carolinaaraujo23/swissgrid-reserve-price-forecast/tree/main/src/features) (Feature engineering), [`src/evaluation`](https://github.com/carolinaaraujo23/swissgrid-reserve-price-forecast/tree/main/src/evaluation) (Metrics and leakage checks), [`src/data`](https://github.com/carolinaaraujo23/swissgrid-reserve-price-forecast/tree/main/src/data) (Load and target), [`src/models`](https://github.com/carolinaaraujo23/swissgrid-reserve-price-forecast/tree/main/src/models) (Supervised models)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Auction data"]
  node_raw[("Raw offers")]
  node_processing["Load and target"]
end

subgraph group_forecast["Forecasting"]
  node_features["Feature engineering"]
  node_baseline["Previous-auction baseline"]
  node_supervised["Supervised models"]
  node_agent_rl["Agent and RL models"]
end

subgraph group_evaluation["Evaluation"]
  node_walkforward["Walk-forward splits"]
  node_metrics["Metrics and leakage checks"]
end

subgraph group_outputs["Results"]
  node_predictions[("Test predictions")]
end

node_provider(("Swissgrid offers"))
node_analyst(("Project analyst"))

node_provider -->|"provides offers"| node_raw
node_raw -.->|"loads and cleans"| node_processing
node_processing -.->|"constructs inputs"| node_features
node_processing -.->|"constructs targets"| node_features
node_features -.->|"supplies features"| node_baseline
node_features -.->|"supplies features"| node_supervised
node_features -.->|"supplies features"| node_agent_rl
node_walkforward -.->|"sets test periods"| node_supervised
node_baseline -->|"compared against"| node_metrics
node_supervised -.->|"evaluated by"| node_metrics
node_agent_rl -.->|"evaluated by"| node_metrics
node_metrics -.->|"saves forecasts"| node_predictions
node_analyst -.->|"reviews results"| node_predictions

click node_raw "https://github.com/carolinaaraujo23/swissgrid-reserve-price-forecast/tree/main/data/raw"
click node_processing "https://github.com/carolinaaraujo23/swissgrid-reserve-price-forecast/tree/main/src/data"
click node_features "https://github.com/carolinaaraujo23/swissgrid-reserve-price-forecast/tree/main/src/features"
click node_baseline "https://github.com/carolinaaraujo23/swissgrid-reserve-price-forecast/tree/main/src/models"
click node_supervised "https://github.com/carolinaaraujo23/swissgrid-reserve-price-forecast/tree/main/src/models"
click node_agent_rl "https://github.com/carolinaaraujo23/swissgrid-reserve-price-forecast/tree/main/src/models"
click node_walkforward "https://github.com/carolinaaraujo23/swissgrid-reserve-price-forecast/tree/main/src/evaluation"
click node_metrics "https://github.com/carolinaaraujo23/swissgrid-reserve-price-forecast/tree/main/src/evaluation"
click node_predictions "https://github.com/carolinaaraujo23/swissgrid-reserve-price-forecast/tree/main/results"

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_raw,node_processing toneBlue
class node_features,node_baseline,node_supervised,node_agent_rl toneAmber
class node_walkforward,node_metrics toneMint
class node_predictions toneRose
class node_provider,node_analyst toneIndigo
```

## Components

### Auction data

- [Raw offers](https://github.com/carolinaaraujo23/swissgrid-reserve-price-forecast/tree/main/data/raw): `data/raw`
- [Load and target](https://github.com/carolinaaraujo23/swissgrid-reserve-price-forecast/tree/main/src/data): `src/data`

### Forecasting

- [Feature engineering](https://github.com/carolinaaraujo23/swissgrid-reserve-price-forecast/tree/main/src/features): `src/features`
- [Previous-auction baseline](https://github.com/carolinaaraujo23/swissgrid-reserve-price-forecast/tree/main/src/models): `src/models`
- [Supervised models](https://github.com/carolinaaraujo23/swissgrid-reserve-price-forecast/tree/main/src/models): `src/models`
- [Agent and RL models](https://github.com/carolinaaraujo23/swissgrid-reserve-price-forecast/tree/main/src/models): `src/models`

### Evaluation

- [Walk-forward splits](https://github.com/carolinaaraujo23/swissgrid-reserve-price-forecast/tree/main/src/evaluation): `src/evaluation`
- [Metrics and leakage checks](https://github.com/carolinaaraujo23/swissgrid-reserve-price-forecast/tree/main/src/evaluation): `src/evaluation`

### Results

- [Test predictions](https://github.com/carolinaaraujo23/swissgrid-reserve-price-forecast/tree/main/results): `results`

### Other components

- **Swissgrid offers**
- **Project analyst**

## Connections

- Swissgrid offers → Raw offers: provides offers (evidence: `README.md`)
- Raw offers → Load and target: loads and cleans
- Load and target → Feature engineering: constructs inputs
- Load and target → Feature engineering: constructs targets
- Feature engineering → Previous-auction baseline: supplies features
- Feature engineering → Supervised models: supplies features
- Feature engineering → Agent and RL models: supplies features
- Walk-forward splits → Supervised models: sets test periods
- Previous-auction baseline → Metrics and leakage checks: compared against (evidence: `README.md`)
- Supervised models → Metrics and leakage checks: evaluated by
- Agent and RL models → Metrics and leakage checks: evaluated by
- Metrics and leakage checks → Test predictions: saves forecasts
- Project analyst → Test predictions: reviews results
