Neural Additive Models (PyTorch): Intepretable ML with Neural Nets
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nam-pt-0.3.tar.gz.
File metadata
- Download URL: nam-pt-0.3.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c613ec95ec1f65aebcd2ff044de1626e15c7977be150f9e2c90968cef48c024
|
|
| MD5 |
e90f0713e007d49656284e2f65c59b1b
|
|
| BLAKE2b-256 |
8cb4d5127a56f5f19e91717d365c8d548a5f17deb0d732840eea7063aa84b4fc
|
File details
Details for the file nam_pt-0.3-py3-none-any.whl.
File metadata
- Download URL: nam_pt-0.3-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20dab8735a28e6db47e194983a7de5ae4ba931ba7cf738807e5a3589ef9cce70
|
|
| MD5 |
4e64d4f4463aba5604a0ea4ba9ba53e8
|
|
| BLAKE2b-256 |
2dcf0fd1f465535b2ab8f7ff4b9e260934171cd1737451f881fe46acf2c59262
|