# elsotac/laboratorios architecture

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

- Interactive diagram: https://gitdiagram.com/elsotac/laboratorios
- Repository: https://github.com/elsotac/laboratorios

## Overview

Lab11 is a Kedro-based MLOps laboratory that prepares shuttle, company and review data, trains and compares regression models, and evaluates the selected model. The documented pipeline declarations establish the data-stage order; the training-node source shows model tracking and selection through MLflow. The repository also contains separate lab notebooks, but they are outside this Lab11 workflow. The graph is limited to sampled implementation and documented pipeline wiring; configuration-based catalog behavior is not inferred.

Main entry points: [`Lab11/src/labb11/pipelines/data_prep/nodes.py`](https://github.com/elsotac/laboratorios/blob/master/Lab11/src/labb11/pipelines/data_prep/nodes.py) (Load raw data), [`Lab11/src/labb11/pipelines/train_model/nodes.py`](https://github.com/elsotac/laboratorios/blob/master/Lab11/src/labb11/pipelines/train_model/nodes.py) (Train candidates)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_prep["Data preparation"]
  node_load_data["Load raw data<br/>[nodes.py]"]
  node_companies["Prepare companies<br/>[nodes.py]"]
  node_shuttles["Prepare shuttles<br/>[nodes.py]"]
  node_assemble["Build model table<br/>[nodes.py]"]
  node_model_input["Model input"]
end

subgraph group_modeling["Model training"]
  node_split["Split dataset<br/>[nodes.py]"]
  node_train["Train candidates<br/>[nodes.py]"]
  node_select["Select best model<br/>[nodes.py]"]
  node_evaluate["Evaluate model<br/>[nodes.py]"]
  node_test_data["Test split"]
end

subgraph group_tracking["Experiment tracking"]
  node_mlflow[("MLflow tracking")]
end

node_analyst(("Lab operator"))
node_kedro["Kedro runner"]
node_source_data[("Remote datasets")]

node_load_data -->|"reads"| node_source_data
node_load_data -->|"returns"| node_companies
node_load_data -->|"returns"| node_shuttles
node_companies -->|"feeds"| node_assemble
node_shuttles -->|"feeds"| node_assemble
node_load_data -->|"provides reviews"| node_assemble
node_assemble -->|"produces"| node_model_input
node_model_input -->|"splits"| node_split
node_split -->|"provides train and validation"| node_train
node_split -->|"produces"| node_test_data
node_train -->|"logs runs"| node_mlflow
node_train -->|"calls"| node_select
node_select -->|"loads best run"| node_mlflow
node_train -->|"returns model"| node_evaluate
node_test_data -->|"evaluates against"| node_evaluate

click node_load_data "https://github.com/elsotac/laboratorios/blob/master/Lab11/src/labb11/pipelines/data_prep/nodes.py"
click node_companies "https://github.com/elsotac/laboratorios/blob/master/Lab11/src/labb11/pipelines/data_prep/nodes.py"
click node_shuttles "https://github.com/elsotac/laboratorios/blob/master/Lab11/src/labb11/pipelines/data_prep/nodes.py"
click node_assemble "https://github.com/elsotac/laboratorios/blob/master/Lab11/src/labb11/pipelines/data_prep/nodes.py"
click node_split "https://github.com/elsotac/laboratorios/blob/master/Lab11/src/labb11/pipelines/train_model/nodes.py"
click node_train "https://github.com/elsotac/laboratorios/blob/master/Lab11/src/labb11/pipelines/train_model/nodes.py"
click node_select "https://github.com/elsotac/laboratorios/blob/master/Lab11/src/labb11/pipelines/train_model/nodes.py"
click node_evaluate "https://github.com/elsotac/laboratorios/blob/master/Lab11/src/labb11/pipelines/train_model/nodes.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_load_data,node_companies,node_shuttles,node_assemble,node_model_input toneBlue
class node_split,node_train,node_select,node_evaluate,node_test_data,node_source_data toneAmber
class node_mlflow toneMint
class node_analyst,node_kedro toneIndigo
```

## Components

### Data preparation

- [Load raw data](https://github.com/elsotac/laboratorios/blob/master/Lab11/src/labb11/pipelines/data_prep/nodes.py): `Lab11/src/labb11/pipelines/data_prep/nodes.py`
- [Prepare companies](https://github.com/elsotac/laboratorios/blob/master/Lab11/src/labb11/pipelines/data_prep/nodes.py): `Lab11/src/labb11/pipelines/data_prep/nodes.py`
- [Prepare shuttles](https://github.com/elsotac/laboratorios/blob/master/Lab11/src/labb11/pipelines/data_prep/nodes.py): `Lab11/src/labb11/pipelines/data_prep/nodes.py`
- [Build model table](https://github.com/elsotac/laboratorios/blob/master/Lab11/src/labb11/pipelines/data_prep/nodes.py): `Lab11/src/labb11/pipelines/data_prep/nodes.py`
- **Model input**

### Model training

- [Split dataset](https://github.com/elsotac/laboratorios/blob/master/Lab11/src/labb11/pipelines/train_model/nodes.py): `Lab11/src/labb11/pipelines/train_model/nodes.py`
- [Train candidates](https://github.com/elsotac/laboratorios/blob/master/Lab11/src/labb11/pipelines/train_model/nodes.py): `Lab11/src/labb11/pipelines/train_model/nodes.py`
- [Select best model](https://github.com/elsotac/laboratorios/blob/master/Lab11/src/labb11/pipelines/train_model/nodes.py): `Lab11/src/labb11/pipelines/train_model/nodes.py`
- [Evaluate model](https://github.com/elsotac/laboratorios/blob/master/Lab11/src/labb11/pipelines/train_model/nodes.py): `Lab11/src/labb11/pipelines/train_model/nodes.py`
- **Test split**

### Experiment tracking

- **MLflow tracking**

### Other components

- **Lab operator**
- **Kedro runner**
- **Remote datasets**

## Connections

- Load raw data → Remote datasets: reads (evidence: `Lab11/src/labb11/pipelines/data_prep/nodes.py`)
- Load raw data → Prepare companies: returns (evidence: `Lab11/src/labb11/pipelines/data_prep/pipeline.py`)
- Load raw data → Prepare shuttles: returns (evidence: `Lab11/src/labb11/pipelines/data_prep/pipeline.py`)
- Prepare companies → Build model table: feeds (evidence: `Lab11/src/labb11/pipelines/data_prep/pipeline.py`)
- Prepare shuttles → Build model table: feeds (evidence: `Lab11/src/labb11/pipelines/data_prep/pipeline.py`)
- Load raw data → Build model table: provides reviews (evidence: `Lab11/src/labb11/pipelines/data_prep/pipeline.py`)
- Build model table → Model input: produces
- Model input → Split dataset: splits
- Split dataset → Train candidates: provides train and validation (evidence: `Lab11/src/labb11/pipelines/train_model/pipeline.py`)
- Split dataset → Test split: produces
- Train candidates → MLflow tracking: logs runs (evidence: `Lab11/src/labb11/pipelines/train_model/nodes.py`)
- Train candidates → Select best model: calls (evidence: `Lab11/src/labb11/pipelines/train_model/nodes.py`)
- Select best model → MLflow tracking: loads best run (evidence: `Lab11/src/labb11/pipelines/train_model/nodes.py`)
- Train candidates → Evaluate model: returns model (evidence: `Lab11/src/labb11/pipelines/train_model/pipeline.py`)
- Test split → Evaluate model: evaluates against
