Skip to main content

GPNAM - an interpretable Gaussian Process Neural Additive Model.

Project description

GPNAM: Gaussian Process Neural Additive Models

The framework of GPNAM 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 package implements the paper titled Gaussian Process Neural Additive Models that appears at AAAI 2024. The paper is available on Arxiv.

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

gpnam-0.1.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gpnam-0.1.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file gpnam-0.1.0.tar.gz.

File metadata

  • Download URL: gpnam-0.1.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.0

File hashes

Hashes for gpnam-0.1.0.tar.gz
Algorithm Hash digest
SHA256 250c3984383c91d9cf6f0e51ea6bcb3547921c7b3c2a9f80c902ccff1fc377fc
MD5 6b9a63ffeb164342cd4baac8f51a09c1
BLAKE2b-256 d2fee1501ac3d8ed98a8659a8d38a4067a1926f857956f566ea3299a0ba324fd

See more details on using hashes here.

File details

Details for the file gpnam-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gpnam-0.1.0-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

Hashes for gpnam-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ffc5bfba3b55c4776b7c44cefcbaef231a54d239dd4cdb68d5636b133d62fc6d
MD5 de248a95702a49bb80938a5a30ebfb21
BLAKE2b-256 b8d2ad499564870bbd4a7f9006c5f0741d8898857138012d0d0f0e2877c1e165

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