A tiny neural network library.
Project description
Tinynn
Tinynn is a lightweight neural network library built entirely in NumPy, designed to help developers understand the nitty-gritty details of neural networks. With its clean and concise code, Tinynn offers a great learning platform for those who want to deepen their understanding of the inner workings of neural networks.
Despite its simplicity, Tinynn has all the key features of a neural network library, including support for feedforward and recurrent networks, various activation functions, and common optimization algorithms. Whether you're a student, researcher, or machine learning enthusiast, Tinynn is an excellent tool for experimenting with neural network architectures and training algorithms.
Key Features
- Lightweight and easy-to-understand implementation
- Support for feedforward and recurrent networks
- Various activation functions to choose from
- Common optimization algorithms
- Built entirely in NumPy for efficient numerical computations
Installation
To install Tinynn, you can use pip:
pip install tinynn-py
Usage
Here's a basic example demonstrating how to create a feedforward neural network using Tinynn:
from tinynn.models import Sequential
from tinynn.layers import Dense
import numpy as np
model = Sequential()
X = np.array([[1,2,3],
[5,4,3],
[2,3,4]])
y = np.array([0, 0, 1])
model.add(Dense(3,64))
model.add(Dense(64,2,activation='softmax'))
model.compile_model(learning_rate=0.01, optimizer='adagrad') #Also available params: decay_rate,momentum(only for sgd) and optimizer = sgd,adagrad
model.fit(X,y,epochs=1000)
Contributions
Contributions to Tinynn are welcome! Whether you want to report a bug, suggest a new feature, or submit a pull request, please feel free to do so. Let's make Tinynn better together.
License
Tinynn is released under the MIT License. See the LICENSE file for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tinynn-py-1.0.2.tar.gz.
File metadata
- Download URL: tinynn-py-1.0.2.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/6.0.0 pkginfo/1.9.6 requests/2.29.0 requests-toolbelt/0.9.1 tqdm/4.65.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3f1e87105608af64b5aa0a757f32b2a2fd5eca397cecf1cee8f38b5feb19ac9
|
|
| MD5 |
3457b511b4dfdd3c1f4aa9f75b4ad9d0
|
|
| BLAKE2b-256 |
b39daf734e0d5339d7882e47d8cc8f86127c3e5e2a5a0865e8ce414e9cad0def
|
File details
Details for the file tinynn_py-1.0.2-py3-none-any.whl.
File metadata
- Download URL: tinynn_py-1.0.2-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/6.0.0 pkginfo/1.9.6 requests/2.29.0 requests-toolbelt/0.9.1 tqdm/4.65.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdcfb1bca52849835366d50b58363841a5b34e0a4c96401f72671a636424944d
|
|
| MD5 |
43f905b287304bc880bc3dc7ed8754b4
|
|
| BLAKE2b-256 |
65c8a1629e9edf3c86d65e98e310956977b85854a07dded5e9ebc2c714bd4066
|