# arturmarschenkulov/rusty_neural_networks architecture

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

- Interactive diagram: https://gitdiagram.com/arturmarschenkulov/rusty_neural_networks
- Repository: https://github.com/arturmarschenkulov/rusty_neural_networks

## Overview

This repository contains Rust neural-network experiments, with the active executable loading MNIST CSV data, preparing training inputs and labels, and running gradient descent on a fully connected classifier. The network uses activation functions for its forward and backward calculations; prediction and accuracy helpers are implemented, though prediction is commented out in the executable. The tree also contains a separate scalar-regression network experiment and a standalone matrix type. Those files are not connected to the active executable in the excerpts. Edges reflect only shown calls or documented data access.

Main entry points: [`src/main.rs`](https://github.com/arturmarschenkulov/rusty_neural_networks/blob/master/src/main.rs) (MNIST training runner), [`src/network.rs`](https://github.com/arturmarschenkulov/rusty_neural_networks/blob/master/src/network.rs) (Network training and prediction), [`mnist_test.csv`](https://github.com/arturmarschenkulov/rusty_neural_networks/blob/master/mnist_test.csv) (MNIST CSV data), [`src/activation.rs`](https://github.com/arturmarschenkulov/rusty_neural_networks/blob/master/src/activation.rs) (Activation functions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["MNIST workflow"]
  node_main["MNIST training runner<br/>[main.rs]"]
  node_csv["MNIST CSV data<br/>[mnist_test.csv]"]
end

subgraph group_nn["Classifier internals"]
  node_network["Network training and prediction<br/>[network.rs]"]
  node_activation["Activation functions<br/>[activation.rs]"]
end

subgraph group_experiments["Standalone experiments"]
  node_scalar["Scalar regression network<br/>[mod.rs]"]
end

subgraph group_math["Matrix operations"]
  node_matrix["Matrix operations<br/>[matrix.rs]"]
end

node_user(("Program launch"))

node_user -->|"runs"| node_main
node_main -->|"loads"| node_csv
node_main -->|"trains"| node_network
node_network -->|"evaluates"| node_activation

click node_main "https://github.com/arturmarschenkulov/rusty_neural_networks/blob/master/src/main.rs"
click node_csv "https://github.com/arturmarschenkulov/rusty_neural_networks/blob/master/mnist_test.csv"
click node_network "https://github.com/arturmarschenkulov/rusty_neural_networks/blob/master/src/network.rs"
click node_activation "https://github.com/arturmarschenkulov/rusty_neural_networks/blob/master/src/activation.rs"
click node_scalar "https://github.com/arturmarschenkulov/rusty_neural_networks/blob/master/src/t/mod.rs"
click node_matrix "https://github.com/arturmarschenkulov/rusty_neural_networks/blob/master/src/matrix.rs"

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_main,node_csv toneBlue
class node_network,node_activation toneAmber
class node_scalar toneMint
class node_matrix toneRose
class node_user toneIndigo
```

## Components

### MNIST workflow

- [MNIST training runner](https://github.com/arturmarschenkulov/rusty_neural_networks/blob/master/src/main.rs): `src/main.rs`
- [MNIST CSV data](https://github.com/arturmarschenkulov/rusty_neural_networks/blob/master/mnist_test.csv): `mnist_test.csv`

### Classifier internals

- [Network training and prediction](https://github.com/arturmarschenkulov/rusty_neural_networks/blob/master/src/network.rs): `src/network.rs`
- [Activation functions](https://github.com/arturmarschenkulov/rusty_neural_networks/blob/master/src/activation.rs): `src/activation.rs`

### Standalone experiments

- [Scalar regression network](https://github.com/arturmarschenkulov/rusty_neural_networks/blob/master/src/t/mod.rs): `src/t/mod.rs`

### Matrix operations

- [Matrix operations](https://github.com/arturmarschenkulov/rusty_neural_networks/blob/master/src/matrix.rs): `src/matrix.rs`

### Other components

- **Program launch**

## Connections

- Program launch → MNIST training runner: runs (evidence: `src/main.rs`)
- MNIST training runner → MNIST CSV data: loads (evidence: `src/main.rs`)
- MNIST training runner → Network training and prediction: trains (evidence: `src/main.rs`)
- Network training and prediction → Activation functions: evaluates (evidence: `src/network.rs`)
