# yedacui/tsrlproject_jpmorgan architecture

> Architecture diagram of the GitHub repository yedacui/tsrlproject_jpmorgan, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-02-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yedacui/tsrlproject_jpmorgan
- Repository: https://github.com/yedacui/tsrlproject_jpmorgan

## Overview

##### Main Components

a) Core Components:
- LHNN Implementation
- PMHMC Implementation
- Data Generation System
- Training Pipeline
- Testing Framework

b) Supporting Components:
- Configuration Management
- Utility Functions
- Hamiltonian Functions

##### Component Relationships

a) Primary Flow:
**Data Generation → LHNN → PMHMC → Training Pipeline**

b) Supporting Flows:
**Configs → All Components**
**Utils → All Components**
**Functions → HNN/MCMC Components**

##### Specific Design Elements

Use these visual elements:
- Rounded rectangles for supporting modules
- Blue: Core ML components (HNN, MCMC)
- Green: Data-related components
- Yellow: Support modules
- Gray: Configuration and utilities

##### Technical Details

Annotations showing:
- TensorFlow 2.18.0 integration points
- Python 3 environment
- Test coverage connections
- Mathematical function implementations

##### Implementation Details

Create sections showing:
- HNN Architecture
- MCMC Implementation Details
- Training Pipeline Flow
- Data Generation Process

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph Data_Layer
        DG[Data Generation]:::data
        IO[Input/Output Flow]:::data
    end

    subgraph Core_Processing
        HNN[LHNN Implementation]:::core
        MCMC[PMHMC Implementation]:::core
        TRAIN[Training Pipeline]:::core
        SAMP[Sampling System]:::core
    end

    subgraph Support_Systems
        CONFIG[Configuration System]:::support
        UTILS[Utility Functions]:::support
        FUNC[Mathematical Functions]:::support
    end

    subgraph Testing_Framework
        TEST_HNN[HNN Tests]:::test
        TEST_MCMC[MCMC Tests]:::test
        TEST_DATA[Data Tests]:::test
        TEST_TRAIN[Training Tests]:::test
        TEST_FUNC[Function Tests]:::test
        TEST_UTILS[Utils Tests]:::test
        TEST_SAMP[Sampling Tests]:::test
    end

    DG --> HNN
    DG --> MCMC
    IO --> TRAIN
    
    HNN <--> MCMC
    MCMC --> SAMP
    HNN --> TRAIN
    SAMP --> TRAIN

    CONFIG --> HNN
    CONFIG --> MCMC
    CONFIG --> TRAIN
    CONFIG --> SAMP
    
    UTILS --> HNN
    UTILS --> MCMC
    UTILS --> TRAIN
    UTILS --> SAMP
    
    FUNC --> HNN
    FUNC --> MCMC

    HNN --> TEST_HNN
    MCMC --> TEST_MCMC
    DG --> TEST_DATA
    TRAIN --> TEST_TRAIN
    FUNC --> TEST_FUNC
    UTILS --> TEST_UTILS
    SAMP --> TEST_SAMP

    %% Click events for component mapping
    click HNN "https://github.com/YedaCui/TSRLproject_JPMorgan/blob/main/src/hnn.py"
    click MCMC "https://github.com/YedaCui/TSRLproject_JPMorgan/blob/main/src/mcmc.py"
    click DG "https://github.com/YedaCui/TSRLproject_JPMorgan/blob/main/src/gene_data.py"
    click TRAIN "https://github.com/YedaCui/TSRLproject_JPMorgan/blob/main/src/train.py"
    click CONFIG "https://github.com/YedaCui/TSRLproject_JPMorgan/blob/main/src/configs.py"
    click UTILS "https://github.com/YedaCui/TSRLproject_JPMorgan/blob/main/src/utils.py"
    click FUNC "https://github.com/YedaCui/TSRLproject_JPMorgan/blob/main/src/functions.py"
    click SAMP "https://github.com/YedaCui/TSRLproject_JPMorgan/blob/main/src/sampling.py"
    click TEST_HNN "https://github.com/YedaCui/TSRLproject_JPMorgan/blob/main/tests/test_hnn.py"
    click TEST_MCMC "https://github.com/YedaCui/TSRLproject_JPMorgan/blob/main/tests/test_mcmc.py"
    click TEST_DATA "https://github.com/YedaCui/TSRLproject_JPMorgan/blob/main/tests/test_gene_data.py"
    click TEST_TRAIN "https://github.com/YedaCui/TSRLproject_JPMorgan/blob/main/tests/test_train.py"
    click TEST_FUNC "https://github.com/YedaCui/TSRLproject_JPMorgan/blob/main/tests/test_functions.py"
    click TEST_UTILS "https://github.com/YedaCui/TSRLproject_JPMorgan/blob/main/tests/test_utils.py"
    click TEST_SAMP "https://github.com/YedaCui/TSRLproject_JPMorgan/blob/main/tests/test_sampling.py"

    classDef core fill:#2374f7,stroke:#333,stroke-width:2px
    classDef data fill:#48a04a,stroke:#333,stroke-width:2px
    classDef support fill:#f7d123,stroke:#333,stroke-width:2px
    classDef test fill:#cccccc,stroke:#333,stroke-width:2px

    %% Legend
    subgraph Legend
        L1[Core ML Components]:::core
        L2[Data Components]:::data
        L3[Support Modules]:::support
        L4[Test Components]:::test
    end
```
