# atefeh97hmt/activation-functions-visualization architecture

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

- Interactive diagram: https://gitdiagram.com/atefeh97hmt/activation-functions-visualization
- Repository: https://github.com/atefeh97hmt/activation-functions-visualization

## Overview

##### Project type and purpose
- This is an open-source Python tool whose sole purpose is to generate and save visualizations for several neural-network activation functions. There is no web frontend or database—rather a set of scripts (one per activation function) that produce charts and write them into an images folder.

##### File structure
● Top-level scripts:
– linear.py
– Sigmoid.py
– HyperbolicTangentFunction.py
– RectifiedLinearUnit.py
– Leaky ReLU.py
– Softmax.py
● assets:
– images/  (where plots are saved)
● README.md and no sub-packages or service directories.
This pattern suggests a modular “plugin” architecture: each .py implements the same steps (generate input array → compute activation → plot → save).

##### README for additional insights
- Dependencies: numpy (for generating x-values and computing functions) and matplotlib (for plotting).
- No higher-level orchestration or CI/deployment pipelines.

##### Elements
- from Input Generator → Activation Module
- Activation Module → Plotting Engine
- Plotting Engine → File Output
- Green for visualization components
- Gray clouds for external dependencies (NumPy, Matplotlib)

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph "Open-Source Activation Visualization Tool"
        direction TB
        README["README.md"]:::doc
        Input["Input Generator"]:::compute

        subgraph "Activation Function Modules"
            direction TB
            Linear["linear.py"]:::compute
            Sigmoid["Sigmoid.py"]:::compute
            Tanh["HyperbolicTangentFunction.py"]:::compute
            ReLU["RectifiedLinearUnit.py"]:::compute
            Leaky["Leaky ReLU.py"]:::compute
            Softmax["Softmax.py"]:::compute
        end

        Plotter["Plotting Engine"]:::viz
        Images["images/"]:::storage
        External["NumPy\nMatplotlib"]:::external
    end

    README -.-> Input
    Input -->|"x values"| Linear
    Input -->|"x values"| Sigmoid
    Input -->|"x values"| Tanh
    Input -->|"x values"| ReLU
    Input -->|"x values"| Leaky
    Input -->|"x values"| Softmax

    Linear -->|"y values"| Plotter
    Sigmoid -->|"y values"| Plotter
    Tanh -->|"y values"| Plotter
    ReLU -->|"y values"| Plotter
    Leaky -->|"y values"| Plotter
    Softmax -->|"y values"| Plotter

    Plotter -->|"save plot"| Images

    External -.-> Input
    External -.-> Plotter

    click Linear "https://github.com/atefeh97hmt/activation-functions-visualization/blob/master/linear.py"
    click Sigmoid "https://github.com/atefeh97hmt/activation-functions-visualization/blob/master/Sigmoid.py"
    click Tanh "https://github.com/atefeh97hmt/activation-functions-visualization/blob/master/HyperbolicTangentFunction.py"
    click ReLU "https://github.com/atefeh97hmt/activation-functions-visualization/blob/master/RectifiedLinearUnit.py"
    click Leaky "https://github.com/atefeh97hmt/activation-functions-visualization/blob/master/Leaky ReLU.py"
    click Softmax "https://github.com/atefeh97hmt/activation-functions-visualization/blob/master/Softmax.py"
    click Images "https://github.com/atefeh97hmt/activation-functions-visualization/tree/master/images/"
    click README "https://github.com/atefeh97hmt/activation-functions-visualization/blob/master/README.md"

    classDef compute fill:#bbdefb,stroke:#1e88e5,color:#0d47a1
    classDef viz fill:#c8e6c9,stroke:#2e7d32,color:#1b5e20
    classDef storage fill:#ffe0b2,stroke:#ef6c00,color:#e65100
    classDef external fill:#e0e0e0,stroke:#757575,color:#424242
    classDef doc fill:#f0f4c3,stroke:#afb42b,color:#827717
```
