# titipata/yelp_dataset_challenge architecture

> Architecture diagram of the GitHub repository titipata/yelp_dataset_challenge, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/titipata/yelp_dataset_challenge
- Repository: https://github.com/titipata/yelp_dataset_challenge

## Overview

No explanation provided

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Data["Data Sources"]
        S3[("AWS S3 Bucket<br/>science-of-science-bucket")]
        B[("Business Dataset")]
        R[("Review Dataset")]
        U[("User Dataset")]
        C[("Checkin Dataset")]
        T[("Tip Dataset")]
        S3 --> B & R & U & C & T
    end

    subgraph Core["Core Library (yelp_util)"]
        D["Downloader<br/>(Data Acquisition)"]
        Reader["Reader<br/>(Data Parsing)"]
        P["Preprocessing<br/>(Data Transformation)"]
        M["Model<br/>(Machine Learning)"]
        D --> Reader --> P --> M
    end

    subgraph Web["Django Web Application"]
        direction TB
        Templates["Frontend Templates"]
        Static["Static Assets"]
        URLs["URL Routing"]
        Views["Views Layer"]
        Models["Models Layer"]
        Settings["Web App Settings"]
        
        Templates --> Views
        Static --> Views
        URLs --> Views
        Views --> Models
    end

    subgraph Analysis["Analysis Scripts & Notebooks"]
        WE["Word Embeddings Analysis"]
        LR["Logistic Regression"]
        CP["Character Prediction"]
        LS["Load and Sample Analysis"]
        RP["Review Polarity Analysis"]
        WP["Word Prediction Analysis"]
    end

    Data --> Core
    Core --> Analysis
    Core --> Web

    %% Click events for components
    click D "https://github.com/titipata/yelp_dataset_challenge/blob/master/yelp_util/downloader.py"
    click Reader "https://github.com/titipata/yelp_dataset_challenge/blob/master/yelp_util/reader.py"
    click P "https://github.com/titipata/yelp_dataset_challenge/blob/master/yelp_util/preprocessing.py"
    click M "https://github.com/titipata/yelp_dataset_challenge/blob/master/yelp_util/model.py"
    click Templates "https://github.com/titipata/yelp_dataset_challenge/tree/master/random_reviews/templates"
    click Static "https://github.com/titipata/yelp_dataset_challenge/tree/master/random_reviews/static"
    click URLs "https://github.com/titipata/yelp_dataset_challenge/blob/master/random_reviews/generate_review/urls.py"
    click Views "https://github.com/titipata/yelp_dataset_challenge/blob/master/random_reviews/generate_review/views.py"
    click Models "https://github.com/titipata/yelp_dataset_challenge/blob/master/random_reviews/generate_review/models.py"
    click Settings "https://github.com/titipata/yelp_dataset_challenge/blob/master/random_reviews/random_reviews/settings.py"
    click WE "https://github.com/titipata/yelp_dataset_challenge/blob/master/examples/domain_specific_word_embeddings.ipynb"
    click LR "https://github.com/titipata/yelp_dataset_challenge/blob/master/scripts/logistic_stars.py"
    click CP "https://github.com/titipata/yelp_dataset_challenge/blob/master/scripts/keras_char_pred.py"
    click LS "https://github.com/titipata/yelp_dataset_challenge/blob/master/yelp_load_and_sample.ipynb"
    click RP "https://github.com/titipata/yelp_dataset_challenge/blob/master/yelp_review_polarity_analysis.ipynb"
    click WP "https://github.com/titipata/yelp_dataset_challenge/blob/master/yelp_word_pred.ipynb"

    classDef default fill:#f9f9f9,stroke:#333,stroke-width:2px;
    classDef storage fill:#b3e0ff,stroke:#333,stroke-width:2px;
    classDef process fill:#98fb98,stroke:#333,stroke-width:2px;
    classDef webapp fill:#ffe4b5,stroke:#333,stroke-width:2px;
    classDef analysis fill:#dda0dd,stroke:#333,stroke-width:2px;

    class S3,B,R,U,C,T storage;
    class D,Reader,P,M process;
    class Templates,Static,URLs,Views,Models,Settings webapp;
    class WE,LR,CP,LS,RP,WP analysis;
```
