# yadavak/mulit-criteria-collaborative-filtering-recommendation-system architecture

> Architecture diagram of the GitHub repository yadavak/mulit-criteria-collaborative-filtering-recommendation-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yadavak/mulit-criteria-collaborative-filtering-recommendation-system
- Repository: https://github.com/yadavak/mulit-criteria-collaborative-filtering-recommendation-system

## Overview

This is a research implementation of a multi-criteria hotel recommendation model. Its visible workflow reads and filters rating data, maps author and hotel IDs to embeddings, trains a criteria-rating model, then trains an overall-rating model from the criteria ratings. The excerpts do not show recommendation generation or serving. A separate script cleans missing criteria values, but no connection from it to the training script is shown; the bundled parsed hotel texts are not referenced by the sampled code.

Main entry points: [`src/recommendationsystem.py`](https://github.com/yadavak/mulit-criteria-collaborative-filtering-recommendation-system/blob/master/src/recommendationsystem.py) (Rating filtering), [`src/data_clean_script.py`](https://github.com/yadavak/mulit-criteria-collaborative-filtering-recommendation-system/blob/master/src/data_clean_script.py) (Rating cleaner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_prep["Data preparation"]
  node_cleaner["Rating cleaner"]
  node_loader["Rating filtering"]
end

subgraph group_model["Model training"]
  node_embeddings["ID embeddings"]
  node_criteria["Criteria model"]
  node_overall["Overall model"]
end

node_researcher(("Researcher"))
node_ratings[("Rating CSV")]
node_cleaned[("Cleaned CSV")]

node_researcher -->|"runs"| node_cleaner
node_ratings -->|"reads"| node_cleaner
node_cleaner -->|"writes"| node_cleaned
node_researcher -->|"runs"| node_loader
node_ratings -->|"reads"| node_loader
node_loader -->|"maps IDs"| node_embeddings
node_loader -->|"fits ratings"| node_criteria
node_criteria -->|"provides criteria"| node_overall

click node_cleaner "https://github.com/yadavak/mulit-criteria-collaborative-filtering-recommendation-system/blob/master/src/data_clean_script.py"
click node_loader "https://github.com/yadavak/mulit-criteria-collaborative-filtering-recommendation-system/blob/master/src/recommendationsystem.py"
click node_embeddings "https://github.com/yadavak/mulit-criteria-collaborative-filtering-recommendation-system/blob/master/src/recommendationsystem.py"
click node_criteria "https://github.com/yadavak/mulit-criteria-collaborative-filtering-recommendation-system/blob/master/src/recommendationsystem.py"
click node_overall "https://github.com/yadavak/mulit-criteria-collaborative-filtering-recommendation-system/blob/master/src/recommendationsystem.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_cleaner,node_loader toneBlue
class node_embeddings,node_criteria,node_overall,node_ratings,node_cleaned toneAmber
class node_researcher toneIndigo
```

## Components

### Data preparation

- [Rating cleaner](https://github.com/yadavak/mulit-criteria-collaborative-filtering-recommendation-system/blob/master/src/data_clean_script.py): `src/data_clean_script.py`
- [Rating filtering](https://github.com/yadavak/mulit-criteria-collaborative-filtering-recommendation-system/blob/master/src/recommendationsystem.py): `src/recommendationsystem.py`

### Model training

- [ID embeddings](https://github.com/yadavak/mulit-criteria-collaborative-filtering-recommendation-system/blob/master/src/recommendationsystem.py): `src/recommendationsystem.py`
- [Criteria model](https://github.com/yadavak/mulit-criteria-collaborative-filtering-recommendation-system/blob/master/src/recommendationsystem.py): `src/recommendationsystem.py`
- [Overall model](https://github.com/yadavak/mulit-criteria-collaborative-filtering-recommendation-system/blob/master/src/recommendationsystem.py): `src/recommendationsystem.py`

### Other components

- **Researcher**
- **Rating CSV**
- **Cleaned CSV**

## Connections

- Researcher → Rating cleaner: runs (evidence: `src/data_clean_script.py`)
- Rating CSV → Rating cleaner: reads (evidence: `src/data_clean_script.py`)
- Rating cleaner → Cleaned CSV: writes (evidence: `src/data_clean_script.py`)
- Researcher → Rating filtering: runs (evidence: `src/recommendationsystem.py`)
- Rating CSV → Rating filtering: reads (evidence: `src/recommendationsystem.py`)
- Rating filtering → ID embeddings: maps IDs (evidence: `src/recommendationsystem.py`)
- Rating filtering → Criteria model: fits ratings (evidence: `src/recommendationsystem.py`)
- Criteria model → Overall model: provides criteria (evidence: `src/recommendationsystem.py`)
