Skip to main content

A neural network model architecture template

Reason this release was yanked:

Please refer to this issue on GitHub: https://github.com/gabrielchoong/template-nn/issues/10

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.4.tar.gz (7.3 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.4-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file template_nn-0.1.4.tar.gz.

File metadata

  • Download URL: template_nn-0.1.4.tar.gz
  • Upload date:
  • Size: 7.3 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.4.tar.gz
Algorithm Hash digest
SHA256 a6013dce06ada0f40be888f21045dfd3c94636ea498f009e055fc620b86a67ff
MD5 adb1b2d2a21a3eceefd71d92fe87f2ac
BLAKE2b-256 304dd1914cb89cc966c11ab39728f71f5f2db20703f9612808eedf350e0d7def

See more details on using hashes here.

File details

Details for the file template_nn-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: template_nn-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for template_nn-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8704b22f6fbe3b3c5cb568be03b139b6eb7f46d1ce2f62a676daaf2287b3c8d9
MD5 2545fe790140d919c0707d7208fe8f2a
BLAKE2b-256 b1a42c10c308213939174ee930ab67df7470cc08adeaf8ed7abb26395515566c

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