Skip to main content

A JAX-based implementation of Kolmogorov-Arnold Networks

Project description

jaxKAN

A JAX implementation of the original Kolmogorov-Arnold Networks (KANs), using the Flax and Optax frameworks for neural networks and optimization, respectively. Our adaptation is based on the original pykan, however we also included a built-in grid extension routine, which does not simply perform an adaptation of the grid based on the inputs, but also extends its size.

Installation

jaxKAN is available as a PyPI package. For installation, simply run

pip3 install jaxkan

The default installation requires jax[cpu], but there is also a gpu version which will install jax[cuda12] as a dependency.

Why not more efficient?

Despite their overall potential in the Deep Learning field, the authors of KANs emphasized their performance when it comes to scientific computing, in tasks such as Symbolic Regression or solving PDEs. This is why we put emphasis on preserving their original form, albeit less computationally efficient, as it allows the user to utilize the full regularization terms presented in the arXiv pre-print and not the "mock" regularization terms presented, for instance, in the efficient-kan implementation.

Citation

If you utilized jaxKAN for your own academic work, please consider using the following citation, which is the paper introducing the framework:

@article{jaxKAN,
  author = {Rigas, Spyros and Papachristou, Michalis and Papadopoulos, Theofilos and Anagnostopoulos, Fotios and Alexandridis, Georgios},
  title = {{Adaptive training of grid-dependent physics-informed Kolmogorov-Arnold networks}},
  journal = {arXiv pre-print},
  doi = {10.48550/arXiv.2407.17611},
  month = {jul},
  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

jaxkan-0.1.5.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

jaxkan-0.1.5-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file jaxkan-0.1.5.tar.gz.

File metadata

  • Download URL: jaxkan-0.1.5.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for jaxkan-0.1.5.tar.gz
Algorithm Hash digest
SHA256 424059615a3af93691a3ec42dceb604f037656b477aba8408cb4e2af6e99bb9d
MD5 3dcf0aea2ca77581f4345ed83fcd6cc7
BLAKE2b-256 59fdbeda4671d5268e40d00e49f521673016fd8e033cef0756d61f896f3af337

See more details on using hashes here.

File details

Details for the file jaxkan-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: jaxkan-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for jaxkan-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2912be651d53c55c5ebb53b73b68fa0376071436d0902463965b8e62cfe2f333
MD5 4c2c9055b59d2474c52d057b829d84f4
BLAKE2b-256 4ee3f44c84b01ab7abb32808513390da790d78dd0904b8ac4cae4d05a764559b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page