Skip to main content

A pure Python neural network framework built from scratch.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

synapse_nn-0.1.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

synapse_nn-0.1.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file synapse_nn-0.1.1.tar.gz.

File metadata

  • Download URL: synapse_nn-0.1.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for synapse_nn-0.1.1.tar.gz
Algorithm Hash digest
SHA256 210bb360819c5ed9ed010e65e71b82a83b539a9c64f37dbafb13bf3667c0efa2
MD5 4ea7c32e174d0366c5e308cf9ce8c557
BLAKE2b-256 544794feee60328ca62615f2368eb91c52c3bf5ffa4739ea74576909965b9c03

See more details on using hashes here.

File details

Details for the file synapse_nn-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: synapse_nn-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for synapse_nn-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d19fa74e67795c8e938d1e1e3a0a839cfa70fef5b9c4586bfb01a6e143847df2
MD5 3ca05501f73a3cb349b5f031217d50fe
BLAKE2b-256 ff77a0e3ff1d11e4442fe279a31b16723f7c0170e0e2b1503467b00239fb5c5a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page