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

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.0.tar.gz (4.6 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.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: synapse_nn-0.1.0.tar.gz
  • Upload date:
  • Size: 4.6 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.0.tar.gz
Algorithm Hash digest
SHA256 d1931269366af6d11a9e0d8e209fc80025f20d6a66c6f58befbc6542b3d41aab
MD5 624373bf4a3a32ca6bf142118f567f17
BLAKE2b-256 d6f7d53805021fae26e5ec9f14509f6c0c59877cb3affa904e7f573de358419a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: synapse_nn-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef74116dff3a05bcbe245295ee2530284e810f12787aaa7571cd337f5f44fff9
MD5 6bccbc088c51b071074cf7d844e06e52
BLAKE2b-256 00aee6fad9d87a9d3d53158d9d88f4d0603c3d1782bc039347f278ac45f7d03d

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