Neural Additive Models (PyTorch)
This is a PyTorch re-implementation for neural additive models, check out:
- Neural Additive Models: Interpretable Machine Learning with Neural Nets.
- TensorFlow OG Implementation
Install Package
Dependencies
- torch==1.7.0
- fsspec==0.8.4
- pandas==1.1.4
- tqdm==4.54.0
- sklearn==0.0
- absl-py==0.11.0
- gcsfs==0.7.1
Usage
conda env create -f environment.yml
conda activate nam-pt
python run.py
Citing
If you use this code in your research, please cite the following paper:
Agarwal, R., Frosst, N., Zhang, X., Caruana, R., & Hinton, G. E. (2020). Neural additive models: Interpretable machine learning with neural nets. arXiv preprint arXiv:2004.13912
@article{agarwal2020neural,
title={Neural additive models: Interpretable machine learning with neural nets},
author={Agarwal, Rishabh and Frosst, Nicholas and Zhang, Xuezhou and
Caruana, Rich and Hinton, Geoffrey E},
journal={arXiv preprint arXiv:2004.13912},
year={2020}
}
Disclaimer about COMPAS dataset: It is important to note that developing a machine learning model to predict pre-trial detention has a number of important ethical considerations. You can learn more about these issues in the Partnership on AI Report on Algorithmic Risk Assessment Tools in the U.S. Criminal Justice System. The Partnership on AI is a multi-stakeholder organization -- of which Google is a member -- that creates guidelines around AI.
We’re using the COMPAS dataset only as an example of how to identify and remediate fairness concerns in data. This dataset is canonical in the algorithmic fairness literature.
Disclaimer: This is not an official Google product.
Release files for nam-pt 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nam-pt-0.3.tar.gz | 10.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nam_pt-0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.3 kB
Release files / nam-pt-0.3.tar.gz
| Download URL | nam-pt-0.3.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c613ec95ec1f65aebcd2ff044de1626e15c7977be150f9e2c90968cef48c024
|
|
BLAKE2b-256 checksum How to use checksums |
8cb4d5127a56f5f19e91717d365c8d548a5f17deb0d732840eea7063aa84b4fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0
|
Release files / nam_pt-0.3-py3-none-any.whl
| Download URL | nam_pt-0.3-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
20dab8735a28e6db47e194983a7de5ae4ba931ba7cf738807e5a3589ef9cce70
|
|
BLAKE2b-256 checksum How to use checksums |
2dcf0fd1f465535b2ab8f7ff4b9e260934171cd1737451f881fe46acf2c59262
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0
|