Skip to main content

A neural network model architecture template

Project description

Template NN

Template NN is a lightweight, easy-to-use template built to streamline neural network prototyping. At its core, it leverages the power of PyTorch.

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

Installation

[!WARNING] Breaking Changes in 0.1.4

This release includes directory renames, module restructuring, and function removals.
If you're upgrading from 0.1.3 or earlier, please read the Release Notes before updating.

You can install template-nn via pip:

pip install template-nn

Or clone the repository and install it locally:

git clone https://github.com/gabrielchoong/template-nn.git
cd template-nn
pip install -r requirements.txt
pip install .

Documentation

For detailed documentation, including usage instructions and examples, visit the online documentation at Documentation.

Feature Preview

import torch.nn as nn
from template_nn import FNN

# Single hidden layer model
model = FNN({
    "input_size": 10,
    "output_size": 5,
    "hidden_sizes": 5,
    "activation_functions": [nn.ReLU()]
})

# Deep network with 5 hidden layers
deep = FNN({
    "input_size": 10,
    "output_size": 5,
    "hidden_sizes": [8] * 5,
    "activation_functions": [nn.ReLU()] * 5
})

Releases and Contributing

This project is currently in its alpha stage. Please file an issue if you found a bug.

To read about the motive and direction of this project, see Roadmap. To read more about the current releases, see Release Notes.

Contributions are welcomed! Please see Contributions for information on contributing.

Contributors

This project is currently being developed by Gabriel.

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.1.5.dev0.tar.gz (9.9 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.1.5.dev0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file template_nn-0.1.5.dev0.tar.gz.

File metadata

  • Download URL: template_nn-0.1.5.dev0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for template_nn-0.1.5.dev0.tar.gz
Algorithm Hash digest
SHA256 94f47f0ef7efeec3ddabbf6343f26bbe3296a6f4e53caa53df94577944c2e19c
MD5 f12ea3963643669e338c12d326baed68
BLAKE2b-256 e2ad3179be5ce355770351c48309e717ad5d8df693a11b6a78ae2132d16c2034

See more details on using hashes here.

File details

Details for the file template_nn-0.1.5.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for template_nn-0.1.5.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 a98fa4afb26d0bce4091184978e63c3ce5b2958a715172435cdb6def73e5cd5d
MD5 a25c07b9f2095277475449a4459b5077
BLAKE2b-256 04213c62271049eba478b44ecbd318e8af5aa0ef16636f808f89906a158be08b

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