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

Uploaded Python 3

File details

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

File metadata

  • Download URL: template_nn-0.1.5.post1.tar.gz
  • Upload date:
  • Size: 9.8 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.post1.tar.gz
Algorithm Hash digest
SHA256 e0df5a63a60cffc4dfc8744bd77189d0acf1212f67d14292a6303f0ac9300a41
MD5 ae9185215e3225d1a3647042d6511bb3
BLAKE2b-256 24d874571eeb9495bc8fc8746043d484b044740d7862ccfbc8c65c6899843b54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for template_nn-0.1.5.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 e4b0752abd10d62151259fd85819c8644b536dd9da5ab2d33f262554183ea485
MD5 83cd652dffe42c375fb5e8b99de974a9
BLAKE2b-256 72f900e12fc6b562a5ff08dc393580db948d20f6dc8f2b3a4236ec25fcc2277e

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