# rishikesh-2006/nns architecture

> Architecture diagram of the GitHub repository rishikesh-2006/nns, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rishikesh-2006/nns
- Repository: https://github.com/rishikesh-2006/nns

## Overview

This is a collection of independent neural-network experiments, not a single application: users run a script or notebook to train a model on a standard dataset and inspect predictions or generated images. The README highlights ANN, CNN, GAN and DCGAN experiments; the tree also contains transformer and image-recovery notebooks. The sampled Python files show MNIST loading, training and prediction, but notebook contents were not sampled, so their internal wiring is left unspecified.

Main entry points: [`Numpy/Mnist.py`](https://github.com/rishikesh-2006/nns/blob/main/Numpy/Mnist.py) (MNIST ANN), [`Pytorch/Pytorch Mnist.py`](https://github.com/rishikesh-2006/nns/blob/main/Pytorch/Pytorch%20Mnist.py) (MNIST ANN), [`Numpy/neural network 4.py`](https://github.com/rishikesh-2006/nns/blob/main/Numpy/neural%20network%204.py) (Small ANN), [`Pytorch/CNN Fashion MNIST.ipynb`](https://github.com/rishikesh-2006/nns/blob/main/Pytorch/CNN%20Fashion%20MNIST.ipynb) (Fashion CNN)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_numpy["NumPy Experiments"]
  node_numpy_mnist["MNIST ANN<br/>[Mnist.py]"]
  node_numpy_small["Small ANN"]
end

subgraph group_supervised["Pytorch Vision"]
  node_torch_mnist["MNIST ANN<br/>[Pytorch Mnist.py]"]
  node_fashion_cnn["Fashion CNN"]
  node_mnist_cnn["MNIST CNN<br/>[CNN Mnist.ipynb]"]
  node_recovery_cnn["Image Recovery"]
end

subgraph group_generative["Image Generation"]
  node_dcgan["DCGAN<br/>[DCGAN.ipynb]"]
  node_fashion_gan["Fashion GAN"]
  node_number_image["Number to Image"]
end

subgraph group_sequence["Transformers"]
  node_transformer["Transformer<br/>[Transformer.ipynb]"]
  node_transformer_complete["Complete Transformer"]
end

node_experimenter(("Experimenter"))
node_mnist_data[("MNIST files")]
node_small_data[("Toy data")]
node_experiment_output["Predictions / images"]

node_experimenter -->|"runs"| node_numpy_mnist
node_experimenter -->|"runs"| node_numpy_small
node_experimenter -->|"runs"| node_torch_mnist
node_experimenter -->|"runs"| node_fashion_cnn
node_experimenter -->|"runs"| node_mnist_cnn
node_experimenter -->|"runs"| node_recovery_cnn
node_experimenter -->|"runs"| node_dcgan
node_experimenter -->|"runs"| node_fashion_gan
node_experimenter -->|"runs"| node_number_image
node_experimenter -->|"runs"| node_transformer
node_experimenter -->|"runs"| node_transformer_complete
node_mnist_data -->|"loads"| node_numpy_mnist
node_mnist_data -->|"loads"| node_torch_mnist
node_small_data -->|"defines"| node_numpy_small
node_numpy_mnist -->|"plots prediction"| node_experiment_output
node_torch_mnist -->|"plots prediction"| node_experiment_output

click node_numpy_mnist "https://github.com/rishikesh-2006/nns/blob/main/Numpy/Mnist.py"
click node_numpy_small "https://github.com/rishikesh-2006/nns/blob/main/Numpy/neural%20network%204.py"
click node_torch_mnist "https://github.com/rishikesh-2006/nns/blob/main/Pytorch/Pytorch%20Mnist.py"
click node_fashion_cnn "https://github.com/rishikesh-2006/nns/blob/main/Pytorch/CNN%20Fashion%20MNIST.ipynb"
click node_mnist_cnn "https://github.com/rishikesh-2006/nns/blob/main/Pytorch/CNN%20Mnist.ipynb"
click node_recovery_cnn "https://github.com/rishikesh-2006/nns/blob/main/Pytorch/CNN%20image%20Recovery.ipynb"
click node_dcgan "https://github.com/rishikesh-2006/nns/blob/main/Pytorch/DCGAN.ipynb"
click node_fashion_gan "https://github.com/rishikesh-2006/nns/blob/main/Pytorch/Fashion%20Mnist%20GAN.ipynb"
click node_number_image "https://github.com/rishikesh-2006/nns/blob/main/Pytorch/Number%20to%20image.ipynb"
click node_transformer "https://github.com/rishikesh-2006/nns/blob/main/Pytorch/Transformer.ipynb"
click node_transformer_complete "https://github.com/rishikesh-2006/nns/blob/main/Pytorch/Transformer_Complete.ipynb"

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_numpy_mnist,node_numpy_small toneBlue
class node_torch_mnist,node_fashion_cnn,node_mnist_cnn,node_recovery_cnn,node_mnist_data,node_small_data toneAmber
class node_dcgan,node_fashion_gan,node_number_image toneMint
class node_transformer,node_transformer_complete toneRose
class node_experimenter,node_experiment_output toneIndigo
```

## Components

### NumPy Experiments

- [MNIST ANN](https://github.com/rishikesh-2006/nns/blob/main/Numpy/Mnist.py): `Numpy/Mnist.py`
- [Small ANN](https://github.com/rishikesh-2006/nns/blob/main/Numpy/neural%20network%204.py): `Numpy/neural network 4.py`

### Pytorch Vision

- [MNIST ANN](https://github.com/rishikesh-2006/nns/blob/main/Pytorch/Pytorch%20Mnist.py): `Pytorch/Pytorch Mnist.py`
- [Fashion CNN](https://github.com/rishikesh-2006/nns/blob/main/Pytorch/CNN%20Fashion%20MNIST.ipynb): `Pytorch/CNN Fashion MNIST.ipynb`
- [MNIST CNN](https://github.com/rishikesh-2006/nns/blob/main/Pytorch/CNN%20Mnist.ipynb): `Pytorch/CNN Mnist.ipynb`
- [Image Recovery](https://github.com/rishikesh-2006/nns/blob/main/Pytorch/CNN%20image%20Recovery.ipynb): `Pytorch/CNN image Recovery.ipynb`

### Image Generation

- [DCGAN](https://github.com/rishikesh-2006/nns/blob/main/Pytorch/DCGAN.ipynb): `Pytorch/DCGAN.ipynb`
- [Fashion GAN](https://github.com/rishikesh-2006/nns/blob/main/Pytorch/Fashion%20Mnist%20GAN.ipynb): `Pytorch/Fashion Mnist GAN.ipynb`
- [Number to Image](https://github.com/rishikesh-2006/nns/blob/main/Pytorch/Number%20to%20image.ipynb): `Pytorch/Number to image.ipynb`

### Transformers

- [Transformer](https://github.com/rishikesh-2006/nns/blob/main/Pytorch/Transformer.ipynb): `Pytorch/Transformer.ipynb`
- [Complete Transformer](https://github.com/rishikesh-2006/nns/blob/main/Pytorch/Transformer_Complete.ipynb): `Pytorch/Transformer_Complete.ipynb`

### Other components

- **Experimenter**
- **MNIST files**
- **Toy data**
- **Predictions / images**

## Connections

- Experimenter → MNIST ANN: runs
- Experimenter → Small ANN: runs
- Experimenter → MNIST ANN: runs
- Experimenter → Fashion CNN: runs
- Experimenter → MNIST CNN: runs
- Experimenter → Image Recovery: runs
- Experimenter → DCGAN: runs
- Experimenter → Fashion GAN: runs
- Experimenter → Number to Image: runs
- Experimenter → Transformer: runs
- Experimenter → Complete Transformer: runs
- MNIST files → MNIST ANN: loads
- MNIST files → MNIST ANN: loads
- Toy data → Small ANN: defines
- MNIST ANN → Predictions / images: plots prediction
- MNIST ANN → Predictions / images: plots prediction
