Skip to main content

nam-pytorch

Unofficial PyTorch implementation of Neural Additive Models (NAM) by Agarwal, et al. [abs, pdf]


Installation

You can access nam-pytorch via pip:

$ pip install nam-pytorch

Usage

import torch 
from nam_pytorch import NAM

nam = NAM(
    num_features=784,
    link_func="sigmoid"
)

images = torch.rand(32, 784)
pred = nam(images) # [32, 1]

Contributing

As always, if there are any issues with / suggestions for the code, feel free to raise an issue or submit a PR.

License

MIT

Metadata

Release files for nam-pytorch 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nam-pytorch 0.0.1
File Size Uploaded Provenance Actions
nam_pytorch-0.0.1.tar.gz 2.2 kB Without provenance Details for nam_pytorch-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nam-pytorch 0.0.1
File Interpreter ABI Platform Actions
nam_pytorch-0.0.1-py3-none-any.whl Python 3 none any Details for nam_pytorch-0.0.1-py3-none-any.whl

Total release size: 5.7 kB

Release files / nam_pytorch-0.0.1.tar.gz

Download URL nam_pytorch-0.0.1.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8ea2ccb7c313daa1690fcfb74ef074c321722453028ab51cf6df5ee4664e0090
BLAKE2b-256 checksum
How to use checksums
f0ace727439b3cbb4d911b53385d190a97bf6e93f6ed8ec587ebeea93b70f8f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.2 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.13

Release files / nam_pytorch-0.0.1-py3-none-any.whl

Download URL nam_pytorch-0.0.1-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc611b1f785cdd50a5ebc6356e2b9f611514b89618d2684ff00ce2becf3c0574
BLAKE2b-256 checksum
How to use checksums
84fb5028751f4817e77221d7dd1deb56a09fbf430d36739c526bac0838bd1919
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.2 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.13

Security for nam-pytorch 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page