interpax

Interpolation and function approximation with JAX

https://github.com/f0uriest/interpax

Science Score: 77.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
    1 of 7 committers (14.3%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.4%) to scientific vocabulary

Keywords from Contributors

transformers charts distribution annotation sequences stellarator energy-system-model energy-system autograding diffusers
Last synced: 6 months ago · JSON representation ·

Repository

Interpolation and function approximation with JAX

Basic Info
  • Host: GitHub
  • Owner: f0uriest
  • License: mit
  • Language: Python
  • Default Branch: main
  • Size: 321 KB
Statistics
  • Stars: 213
  • Watchers: 3
  • Forks: 25
  • Open Issues: 18
  • Releases: 16
Created over 2 years ago · Last pushed 7 months ago
Metadata Files
Readme Changelog Contributing License Citation

README.rst

########
interpax
########
|License| |DOI| |Issues| |Pypi|

|Docs| |UnitTests| |Codecov|

interpax is a library for interpolation and function approximation using JAX.

Includes methods for nearest neighbor, linear, and several cubic interpolation schemes
in 1d, 2d, and 3d, as well as Fourier interpolation for periodic functions in
1d and 2d.

Coming soon:
- Spline interpolation for rectilinear grids in N-dimensions
- RBF interpolation for unstructured data in N-dimensions
- Smoothing splines for noisy data


Installation
============

interpax is installable with `pip`:

.. code-block:: console

    pip install interpax



Usage
=====

.. code-block:: python

    import jax.numpy as jnp
    import numpy as np
    from interpax import interp1d

    xp = jnp.linspace(0, 2 * np.pi, 100)
    xq = jnp.linspace(0, 2 * np.pi, 10000)
    f = lambda x: jnp.sin(x)
    fp = f(xp)

    fq = interp1d(xq, xp, fp, method="cubic")
    np.testing.assert_allclose(fq, f(xq), rtol=1e-6, atol=1e-5)


For full details of various options see the `API documentation `__


.. |License| image:: https://img.shields.io/github/license/f0uriest/interpax?color=blue&logo=open-source-initiative&logoColor=white
    :target: https://github.com/f0uriest/interpax/blob/master/LICENSE
    :alt: License

.. |DOI| image:: https://zenodo.org/badge/706703896.svg
    :target: https://zenodo.org/doi/10.5281/zenodo.10028967
    :alt: DOI

.. |Docs| image:: https://img.shields.io/readthedocs/interpax?logo=Read-the-Docs
    :target: https://interpax.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation

.. |UnitTests| image:: https://github.com/f0uriest/interpax/actions/workflows/unittest.yml/badge.svg
    :target: https://github.com/f0uriest/interpax/actions/workflows/unittest.yml
    :alt: UnitTests

.. |Codecov| image:: https://codecov.io/github/f0uriest/interpax/graph/badge.svg?token=MB11I7WE3I
    :target: https://codecov.io/github/f0uriest/interpax
    :alt: Coverage

.. |Issues| image:: https://img.shields.io/github/issues/f0uriest/interpax
    :target: https://github.com/f0uriest/interpax/issues
    :alt: GitHub issues

.. |Pypi| image:: https://img.shields.io/pypi/v/interpax
    :target: https://pypi.org/project/interpax/
    :alt: Pypi

Owner

  • Name: Rory Conlin
  • Login: f0uriest
  • Kind: user

PhD student, Princeton Plasma Physics Laboratory. Machine learning, dynamical systems, plasma stability and control.

Citation (CITATION.cff)

cff-version: 1.2.0
title: interpax
message: >-
  If you use this software, please cite it using the
  metadata from this file. To cite a specific version of interpax,
  please cite the correct version from Zenodo at
  https://zenodo.org/doi/10.5281/zenodo.10028967
type: software
authors:
  - given-names: Rory
    family-names: Conlin
    email: wconlin@princeton.edu
    affiliation: Princeton University
    orcid: 'https://orcid.org/0000-0001-8366-2111'
identifiers:
  - type: doi
    value: 10.5281/zenodo.10028967
    description: 'Master DOI for interpax, points to latest release.'
  - type: url
    value: 'https://github.com/f0uriest/interpax'
    description: 'Github repository for interpax'
repository-code: 'https://github.com/f0uriest/interpax'
url: 'https://interpax.readthedocs.io'
repository-artifact: 'https://pypi.org/project/interpax/'
license: MIT

GitHub Events

Total
  • Create event: 55
  • Issues event: 22
  • Release event: 6
  • Watch event: 78
  • Delete event: 40
  • Issue comment event: 91
  • Push event: 67
  • Pull request review comment event: 2
  • Pull request review event: 35
  • Pull request event: 102
  • Fork event: 10
Last Year
  • Create event: 55
  • Issues event: 22
  • Release event: 6
  • Watch event: 78
  • Delete event: 40
  • Issue comment event: 91
  • Push event: 67
  • Pull request review comment event: 2
  • Pull request review event: 35
  • Pull request event: 102
  • Fork event: 10

Committers

Last synced: 10 months ago

All Time
  • Total Commits: 93
  • Total Committers: 7
  • Avg Commits per committer: 13.286
  • Development Distribution Score (DDS): 0.409
Past Year
  • Commits: 48
  • Committers: 6
  • Avg Commits per committer: 8.0
  • Development Distribution Score (DDS): 0.438
Top Committers
Name Email Commits
Rory Conlin r****n@g****m 55
dependabot[bot] 4****] 27
Nathaniel Starkman n****n 4
Allen Wang a****w@m****u 3
Troy Tamas t****s@d****m 2
Matthew R. Becker b****r 1
Carlos Pascual 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 37
  • Total pull requests: 120
  • Average time to close issues: 21 days
  • Average time to close pull requests: 12 days
  • Total issue authors: 25
  • Total pull request authors: 11
  • Average comments per issue: 1.35
  • Average comments per pull request: 0.98
  • Merged pull requests: 91
  • Bot issues: 0
  • Bot pull requests: 60
Past Year
  • Issues: 18
  • Pull requests: 102
  • Average time to close issues: 9 days
  • Average time to close pull requests: 4 days
  • Issue authors: 14
  • Pull request authors: 10
  • Average comments per issue: 1.17
  • Average comments per pull request: 0.96
  • Merged pull requests: 74
  • Bot issues: 0
  • Bot pull requests: 60
Top Authors
Issue Authors
  • unalmis (5)
  • nstarman (3)
  • f0uriest (3)
  • mjo22 (2)
  • cpascual (2)
  • dpanici (2)
  • jlperla (1)
  • joglekara (1)
  • ToshiyukiBandai (1)
  • LouisDesdoigts (1)
  • Ceyron (1)
  • LunarLanding (1)
  • kazewong (1)
  • divyamin2507 (1)
  • jaeminoh (1)
Pull Request Authors
  • dependabot[bot] (60)
  • f0uriest (50)
  • nstarman (6)
  • gerlero (4)
  • tvt173 (2)
  • terhorst (2)
  • Qazalbash (2)
  • beckermr (2)
  • cpascual (2)
  • mtruel (1)
  • allen-adastra (1)
Top Labels
Issue Labels
enhancement (3)
Pull Request Labels
dependencies (60) python (56) github_actions (4)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 22,718 last-month
  • Total dependent packages: 2
  • Total dependent repositories: 0
  • Total versions: 17
  • Total maintainers: 1
pypi.org: interpax

Interpolation and function approximation with JAX

  • Versions: 17
  • Dependent Packages: 2
  • Dependent Repositories: 0
  • Downloads: 22,718 Last month
Rankings
Dependent packages count: 9.1%
Average: 38.7%
Dependent repos count: 68.3%
Maintainers (1)
Last synced: 6 months ago