Skip to main content

Synapse-nn

A pure Python neural network framework built from scratch, featuring a custom matrix engine, dense layers, and activation functions. Synapse is designed as an educational project to explore how modern deep learning systems work under the hood.

Features

  • Custom Matrix implementation
  • Dense (Fully Connected) Layers
  • ReLU Activation
  • Sigmoid Activation
  • Tanh Activation
  • No external deep learning frameworks

PyPI

Installation

pip install synapse-nn

Quick Example

from synapse import Matrix, Dense, ReLU

x = Matrix([[1, 2]])

layer = Dense(2, 4)
activation = ReLU()

output = activation.forward(layer.forward(x))

print(output)

Project Roadmap

Current

  • Matrix Engine
  • Dense Layers
  • ReLU
  • Sigmoid
  • Tanh

Upcoming

  • Loss Functions
  • Backpropagation
  • Optimizers
  • Sequential API
  • XOR Training Example
  • Iris Dataset Training
  • Model Saving & Loading

Why Synapse?

Neural networks are inspired by biological neurons connected through synapses. This project aims to recreate the core building blocks of modern deep learning frameworks from first principles, providing a deeper understanding of the mathematics and implementation behind AI systems.

Repository Structure

synapse/
├── matrix.py
├── layers.py
├── activations.py
├── losses.py
├── optimizers.py
└── examples/

License

MIT License

Release files for synapse-nn 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for synapse-nn 0.1.1
File Size Uploaded
synapse_nn-0.1.1.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for synapse-nn 0.1.1
File Interpreter ABI Platform
synapse_nn-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 kB

Release files / synapse_nn-0.1.1.tar.gz

Download URL synapse_nn-0.1.1.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
210bb360819c5ed9ed010e65e71b82a83b539a9c64f37dbafb13bf3667c0efa2
BLAKE2b-256 checksum
How to use checksums
544794feee60328ca62615f2368eb91c52c3bf5ffa4739ea74576909965b9c03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release files / synapse_nn-0.1.1-py3-none-any.whl

Download URL synapse_nn-0.1.1-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d19fa74e67795c8e938d1e1e3a0a839cfa70fef5b9c4586bfb01a6e143847df2
BLAKE2b-256 checksum
How to use checksums
ff77a0e3ff1d11e4442fe279a31b16723f7c0170e0e2b1503467b00239fb5c5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page