GPNAM - an interpretable Gaussian Process NAM model.
Project description
GPNAM: Gaussian Process Neural Additive Models
The framework of GPNAM.
$z_s, c_s$ and the sinusoidal function are predefined from the paper and do not require training. The only trainable parameter is W that maps to the output of each shape function.
This repository contains the source code for the paper Gaussian Process Neural Additive Models that appears at AAAI 2024.
Basically, the GPNAM constructs a Neural Additive Model (NAM) by a GP with Random Fourier Features as the shape function for each input feature, which leads to a convex optimization with a significant reduction in trainable parameters.
Sklearn interface
You can install the package by:
pip install gpnam
Then, you can run the model simply by:
from gpnam.sklearn import GPNAM
"""
input_dim: the dimensions of input data
problem: type of the task, 'classification' or 'regression'
"""
gpnam = GPNAM(input_dim, problem)
gpnam.fit(X, y)
y_pred = gpnam.predict(X_test)
Citation
If you find this repo useful, please consider citing our paper:
@inproceedings{,
title={Gaussian Process Neural Additive Models},
author={Wei Zhang and Brian Barr and John Paisley},
booktitle={AAAI Conference on Artificial Intelligence},
year={2024}
}
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
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 gpnam-0.0.23.tar.gz.
File metadata
- Download URL: gpnam-0.0.23.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea248c3af093e963209c504dd0ea1397715a2746a164aebb6b401d92cb2a25da
|
|
| MD5 |
47e518219e3e9ae8756719f1a3a832f8
|
|
| BLAKE2b-256 |
4d96a1db9b08441f1c95e02d51b5eeac504812cc86c43355733b6c296222de63
|
File details
Details for the file gpnam-0.0.23-py3-none-any.whl.
File metadata
- Download URL: gpnam-0.0.23-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3700c03681e151504b83bada66521ecc510b3a337aa1d135c401fc1c5bfbc67f
|
|
| MD5 |
0f56bd42dbfc19bc47b6df2a493f22e4
|
|
| BLAKE2b-256 |
1f09e3ded83670a5e6c712830a25f3761062773a01d425f77142360b4d1ea985
|