Skip to main content

A neural network model architecture template

Project description

Template NN

Template NN is a lightweight, easy-to-use library designed to streamline the learning process of machine learning. It aims to provide a more opinionated interface while maintaining full compatibility with any existing PyTorch code.

Huge thanks to the PyTorch team for enabling projects like this.

Purpose

Initially developed for my thesis to simplify the codebase, but evolved to a library with a declarative interface for testing and benchmarking neural networks.

The classes uses shortened acronyms such as CNN for Convolution Neural Network with single line instantiation to better focus on the learning aspect of ML.

Installation

Install this library from PyPI:

pip install template-nn

Clone the repository and install it locally for development:

git clone https://github.com/gabrielchoong/template-nn.git
cd template-nn

Using uv (recommended):

uv venv
uv sync

Using pip (not recommended for contributing):

pip install -r requirements.txt
pip install .

Releases and Contributing

See changelog for previous changes. Expect breaking changes at this stage.

See contributing if you wish to contribute to this project.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

template_nn-0.2.0.post1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

template_nn-0.2.0.post1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file template_nn-0.2.0.post1.tar.gz.

File metadata

  • Download URL: template_nn-0.2.0.post1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.4

File hashes

Hashes for template_nn-0.2.0.post1.tar.gz
Algorithm Hash digest
SHA256 916b3a8cfe7fa9c366359ac1b1e662561e20b58a871e686f6a0302724f3e7cf9
MD5 d383af2809e05174040729cd49c90da9
BLAKE2b-256 4603f0ceabfb6e79ffb3a4ed68f030ee4834b0ed03d205888a3ec2a3b4af4900

See more details on using hashes here.

File details

Details for the file template_nn-0.2.0.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for template_nn-0.2.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 03b1ed43baae1bb1a153a8d89636b4da2a744b189baa8f449a8aa7e13a33ca5d
MD5 3964a061f35be21debb39010a98de0de
BLAKE2b-256 6a5e44eb6a05ead3cb374d0f728693d0154d899817cf21f75b2b39f24f3158c2

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