# stevenfromunimimiedse/coding_tests architecture

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

- Interactive diagram: https://gitdiagram.com/stevenfromunimimiedse/coding_tests
- Repository: https://github.com/stevenfromunimimiedse/coding_tests

## Overview

##### Project Context and Purpose
- The project is titled “Unimi-DSE-Machine-Learning-Project” which indicates that it’s an academic/research-oriented machine learning initiative.
- The repository is organized mainly as a collection of Jupyter notebooks that explore various topics—such as embedding analysis, neural network and RNN experimentation, central bank-related tutorials, and even an experimental simple snake game. There’s also a Study_Note folder containing research notes.

##### Main Components (Nodes)
- Experiment Environment / Notebook Sessions:
- Jupyter notebooks (e.g., “20240616_embedding_test(1d_and_2d_closeness_check_on_words).ipynb”, “experimental NN model.ipynb”, “experimental RNN.ipynb”, “random_matrix_is_not_random.ipynb”, “central bank lab record 2.ipynb”, “lab 20240228 incomplete central bank tutorial.ipynb”, “R_notebook.ipynb”, etc.) as the core “Engine” where experiments are performed.
- Research and Study Notes:
- “Study_Note” directory (and any attached documentation) as a separate component that provides context, documentation, and insight into the experimental rationale.
- Algorithms / Models and Their Variants:
- Data Sources and Libraries (External Dependencies):
- Even if not explicitly seen as separate modules, indicate that these notebooks rely on standard Python machine learning libraries (e.g., numpy, pandas, tensorflow/keras, or pytorch) and possibly R libraries in “R_notebook.ipynb”. A generic “Dependencies & Libraries” block can capture that.
- Miscellaneous and Auxiliary Files:

##### Relationships and Data Flow
- That each notebook (or an experimental module) receives data and configuration from the experimental environment (which, in practice, is the Jupyter runtime).
- Data and model flow: For example, from "Raw Experiment Data" or "Preprocessing Modules" that feed into "Model Building" or "Analysis" notebooks.
- Feedback or documentation flow: Link the “Study_Note” component with notebooks that analyze and record results.

##### Architectural Patterns and Design Principles
- Although the project is essentially a collection of independent experiments, you might illustrate an “experimental modular” design that groups similar functionalities.
- Use of a notebook-based interactive workflow which often follows an “iterative” and “exploratory” design pattern.
- Experimentation/Prototyping (actual notebooks running algorithms)
- Documentation/Notes (Study_Note, README.md, and LICENSE.txt)
- External Dependencies (libraries and infrastructure used by notebooks)

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Global Nodes
    DL["Dependencies & Libraries"]:::dependency

    %% Subgraph for Jupyter Notebook Environment/Experimental Engine
    subgraph "Jupyter Notebook Environment/Experimental Engine"
        ET["Embedding Test Notebook"]:::notebook
        NN["Experimental NN Model Notebook"]:::notebook
        RNN["Experimental RNN Notebook"]:::notebook
        RM["Random Matrix Notebook"]:::notebook
        CBL["Central Bank Lab Notebook"]:::notebook
        CBT["Central Bank Tutorial Notebook"]:::notebook
        RN["R Notebook"]:::notebook
        SG["Simple Snake Game Notebook"]:::notebook
        NNAP["Experimental NN with Artifitial Pics Notebook"]:::notebook
    end

    %% Subgraph for Documentation & Research
    subgraph "Documentation & Research"
        doc_readme["README.md"]:::documentation
        doc_license["LICENSE.txt"]:::documentation
        research["Research & Study Notes"]:::documentation
    end

    %% Connections from Dependencies to Notebooks
    DL -->|"requires"| ET
    DL -->|"requires"| NN
    DL -->|"requires"| RNN
    DL -->|"requires"| RM
    DL -->|"requires"| CBL
    DL -->|"requires"| CBT
    DL -->|"requires"| RN
    DL -->|"requires"| SG
    DL -->|"requires"| NNAP

    %% Connections from Notebooks to Documentation (Feedback/Data Recording)
    ET -->|"records"| doc_readme
    NN -->|"records"| doc_readme
    RNN -->|"records"| doc_readme
    RM -->|"records"| doc_readme
    CBL -->|"records"| doc_readme
    CBT -->|"records"| doc_readme
    RN -->|"records"| doc_readme
    SG -->|"records"| doc_readme
    NNAP -->|"records"| doc_readme

    %% Connections from Notebooks to Research & Study Notes (Insights/Notes)
    ET -->|"notes"| research
    NN -->|"notes"| research
    RNN -->|"notes"| research
    RM -->|"notes"| research
    CBL -->|"notes"| research
    CBT -->|"notes"| research
    RN -->|"notes"| research
    SG -->|"notes"| research
    NNAP -->|"notes"| research

    %% Click Events for Notebooks
    click ET "https://github.com/stevenfromunimimiedse/coding_tests/blob/main/20240616_embedding_test(1d_and_2d_closeness_check_on_words).ipynb"
    click NN "https://github.com/stevenfromunimimiedse/coding_tests/blob/main/experimental NN model.ipynb"
    click RNN "https://github.com/stevenfromunimimiedse/coding_tests/blob/main/experimental RNN.ipynb"
    click RM "https://github.com/stevenfromunimimiedse/coding_tests/blob/main/random_matrix_is_not_random.ipynb"
    click CBL "https://github.com/stevenfromunimimiedse/coding_tests/blob/main/central bank lab record 2.ipynb"
    click CBT "https://github.com/stevenfromunimimiedse/coding_tests/blob/main/lab 20240228 incomplete central bank tutorial.ipynb"
    click RN "https://github.com/stevenfromunimimiedse/coding_tests/blob/main/R_notebook.ipynb"
    click SG "https://github.com/stevenfromunimimiedse/coding_tests/blob/main/simple_snake_game.ipynb"
    click NNAP "https://github.com/stevenfromunimimiedse/coding_tests/blob/main/experimental nn model with artifitial pics(to be improved).ipynb"

    %% Click Events for Documentation Nodes
    click doc_readme "https://github.com/stevenfromunimimiedse/coding_tests/blob/main/README.md"
    click doc_license "https://github.com/stevenfromunimimiedse/coding_tests/blob/main/LICENSE.txt"
    click research "https://github.com/stevenfromunimimiedse/coding_tests/tree/main/Study_Note"

    %% Styles
    classDef notebook fill:#bbdefb,stroke:#0d47a1,stroke-width:2px;
    classDef dependency fill:#c8e6c9,stroke:#2e7d32,stroke-width:2px;
    classDef documentation fill:#ffe082,stroke:#fb8c00,stroke-width:2px;
```
