# kirillous/yambda-algorithm-analysis architecture

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

- Interactive diagram: https://gitdiagram.com/kirillous/yambda-algorithm-analysis
- Repository: https://github.com/kirillous/yambda-algorithm-analysis

## Overview

This repository is an observational causal-analysis project, not a deployed recommendation service. Its documented workflow takes YAMBDA listening events through feature construction, propensity modeling, and causal estimation of 24-hour likes and dislikes, with balance diagnostics and stratification as a robustness check. The README documents the notebook order and methods; no notebook source excerpts were provided, so the graph reflects only those documented relationships.

Main entry points: [`Code/data_prep.ipynb`](https://github.com/kirillous/yambda-algorithm-analysis/blob/main/Code/data_prep.ipynb) (Build features), [`Code/model.ipynb`](https://github.com/kirillous/yambda-algorithm-analysis/blob/main/Code/model.ipynb) (Estimate propensity), [`Code/propensity_scores.ipynb`](https://github.com/kirillous/yambda-algorithm-analysis/blob/main/Code/propensity_scores.ipynb) (Estimate effects)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_features["Feature construction"]
  node_prep["Build features<br/>[data_prep.ipynb]"]
end

subgraph group_propensity["Propensity modeling"]
  node_model["Estimate propensity<br/>[model.ipynb]"]
end

subgraph group_causal["Causal estimation"]
  node_effects["Estimate effects"]
end

node_analyst(("Analyst"))
node_yambda[("YAMBDA events")]

node_analyst -->|"runs first"| node_prep
node_yambda -->|"provides events"| node_prep
node_prep -->|"then run"| node_model
node_model -->|"then run"| node_effects

click node_prep "https://github.com/kirillous/yambda-algorithm-analysis/blob/main/Code/data_prep.ipynb"
click node_model "https://github.com/kirillous/yambda-algorithm-analysis/blob/main/Code/model.ipynb"
click node_effects "https://github.com/kirillous/yambda-algorithm-analysis/blob/main/Code/propensity_scores.ipynb"

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_prep toneBlue
class node_model,node_yambda toneAmber
class node_effects toneMint
class node_analyst toneIndigo
```

## Components

### Feature construction

- [Build features](https://github.com/kirillous/yambda-algorithm-analysis/blob/main/Code/data_prep.ipynb): `Code/data_prep.ipynb`

### Propensity modeling

- [Estimate propensity](https://github.com/kirillous/yambda-algorithm-analysis/blob/main/Code/model.ipynb): `Code/model.ipynb`

### Causal estimation

- [Estimate effects](https://github.com/kirillous/yambda-algorithm-analysis/blob/main/Code/propensity_scores.ipynb): `Code/propensity_scores.ipynb`

### Other components

- **Analyst**
- **YAMBDA events**

## Connections

- Analyst → Build features: runs first (evidence: `README.md`)
- YAMBDA events → Build features: provides events (evidence: `README.md`)
- Build features → Estimate propensity: then run (evidence: `README.md`)
- Estimate propensity → Estimate effects: then run (evidence: `README.md`)
