romspline


Nameromspline JSON
Version 1.1.6 PyPI version JSON
download
home_pagehttps://github.com/crgalley/romspline/
SummaryA Python package for building reduced-order models to interpolate univariate data.
upload_time2020-02-05 21:15:30
maintainer
docs_urlNone
authorChad Galley
requires_python
license
keywords reduced order model spline interpolation data compression reduction
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![github](https://img.shields.io/badge/GitHub-romspline-blue.svg)](https://github.com/crgalley/romspline)
[![PyPI version](https://badge.fury.io/py/romspline.svg)](https://badge.fury.io/py/romspline)
[![arXiv:1611.07529](https://img.shields.io/badge/arXiv-1611.07529-B31B1B.svg)](https://arxiv.org/abs/1611.07529)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/crgalley/romspline/blob/master/LICENSE)

# Welcome to romSpline #

romSpline is an easy-to-use Python code for compressing and interpolating 1d data using reduced-order modeling and statistical learning methods.

romSpline uses a greedy algorithm to find a nearly optimal subset of data samples that recovers the original data, to the requested tolerance, with a univariate spline interpolant. The output is the optimal subset of data and the corresponding reduced-order spline interpolant.

romSpline also contains code to estimate the prediction errors at new samples due to interpolation. These methods are largely based on Monte Carlo K-fold cross-validation studies. The mean of the resulting validation errors can be used as a global and useful upper bound on the interpolation errors.

This code should be useful for downsampling or compressing large data arrays to their essential components from which the original information can be constructed and new data predicted through interpolation. The degree of downsampling can be significant (e.g., orders of magnitude) for relatively smooth data. Furthermore, the distribution of the resulting reduced dataset provides information into features and structures of the data that might otherwise not be readily observed.

Future releases of romSpline will provide locally adapted interpolation error estimations based on more refined cross-validation studies. In addition, enhancements to the greedy algorithm will incorporate possible additional information about data quality (such as uncertainties in the data values being compressed and interpolated, if available).

If you use this code for academic work then please cite the following paper describing the method and algorithm:

* C. R. Galley and P. Schmidt, 
"Fast and efficient evaluation of gravitational waveforms via reduced-order spline interpolation" 
[arXiv:1611.07529](https://arxiv.org/abs/1611.07529)


### Installation ###

_**romspline**_ is available through [PyPI](https://pypi.org/project/romspline/):

```shell
pip install romspline
```

### From source

```shell
git clone https://github.com/crgalley/romspline.git
cd romspline
python setup.py install
```

If you do not have root permissions, replace the last step with
`python setup.py install --user`.  Instead of using `setup.py`
manually, you can also replace the last step with `pip install .` or
`pip install --user .`.

Alternatively, you can download or clone this repository and add the
download path to your PYTHONPATH variable.

As another alternative, include the following lines in your Python code:

    import sys
    sys.path.append(<path to romspline>)
    import romspline

### Dependencies
All of these can be installed through pip or conda.
* [numpy](https://docs.scipy.org/doc/numpy/user/install.html)
* [scipy](https://www.scipy.org/install.html)
* [h5py](https://pypi.org/project/h5py/)
* [pathlib2](https://pypi.org/project/pathlib2/) (backport of
  `pathlib` to pre-3.4 python)

romSpline requires NumPy, SciPy, and H5py, which come with most Python distributions. For parallelization, which is useful but not necessary for some of the cross-validation routines, romSpline currently uses the concurrent.futures module. If you are using Python 2 and do not have concurrent.futures installed you may install it using pip:

    pip install futures

Future versions of romSpline will not use concurrent.futures.


### Getting started ###

See the accompanying IPython notebooks (romSpline_example.ipynb and errors_example.ipynb) for simple tutorials on using the code and estimating
errors of the reduced-order spline interpolant for predicting new values. 

#### Author information ####
Copyright (C) 2015 Chad Galley (*crgalley "at" tapir "dot" caltech "dot" edu*). 
Released under the MIT/X Consortium license.
Comments and requests welcome.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/crgalley/romspline/",
    "name": "romspline",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "reduced order model spline interpolation data compression reduction",
    "author": "Chad Galley",
    "author_email": "crgalley@tapir.caltech.edu",
    "download_url": "https://files.pythonhosted.org/packages/ff/ee/5a80838f0263add7923744ab5ef1ee2e100c34182421ac463b8d36c4caff/romspline-1.1.6.tar.gz",
    "platform": "",
    "description": "[![github](https://img.shields.io/badge/GitHub-romspline-blue.svg)](https://github.com/crgalley/romspline)\n[![PyPI version](https://badge.fury.io/py/romspline.svg)](https://badge.fury.io/py/romspline)\n[![arXiv:1611.07529](https://img.shields.io/badge/arXiv-1611.07529-B31B1B.svg)](https://arxiv.org/abs/1611.07529)\n[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/crgalley/romspline/blob/master/LICENSE)\n\n# Welcome to romSpline #\n\nromSpline is an easy-to-use Python code for compressing and interpolating 1d data using reduced-order modeling and statistical learning methods.\n\nromSpline uses a greedy algorithm to find a nearly optimal subset of data samples that recovers the original data, to the requested tolerance, with a univariate spline interpolant. The output is the optimal subset of data and the corresponding reduced-order spline interpolant.\n\nromSpline also contains code to estimate the prediction errors at new samples due to interpolation. These methods are largely based on Monte Carlo K-fold cross-validation studies. The mean of the resulting validation errors can be used as a global and useful upper bound on the interpolation errors.\n\nThis code should be useful for downsampling or compressing large data arrays to their essential components from which the original information can be constructed and new data predicted through interpolation. The degree of downsampling can be significant (e.g., orders of magnitude) for relatively smooth data. Furthermore, the distribution of the resulting reduced dataset provides information into features and structures of the data that might otherwise not be readily observed.\n\nFuture releases of romSpline will provide locally adapted interpolation error estimations based on more refined cross-validation studies. In addition, enhancements to the greedy algorithm will incorporate possible additional information about data quality (such as uncertainties in the data values being compressed and interpolated, if available).\n\nIf you use this code for academic work then please cite the following paper describing the method and algorithm:\n\n* C. R. Galley and P. Schmidt, \n\"Fast and efficient evaluation of gravitational waveforms via reduced-order spline interpolation\" \n[arXiv:1611.07529](https://arxiv.org/abs/1611.07529)\n\n\n### Installation ###\n\n_**romspline**_ is available through [PyPI](https://pypi.org/project/romspline/):\n\n```shell\npip install romspline\n```\n\n### From source\n\n```shell\ngit clone https://github.com/crgalley/romspline.git\ncd romspline\npython setup.py install\n```\n\nIf you do not have root permissions, replace the last step with\n`python setup.py install --user`.  Instead of using `setup.py`\nmanually, you can also replace the last step with `pip install .` or\n`pip install --user .`.\n\nAlternatively, you can download or clone this repository and add the\ndownload path to your PYTHONPATH variable.\n\nAs another alternative, include the following lines in your Python code:\n\n    import sys\n    sys.path.append(<path to romspline>)\n    import romspline\n\n### Dependencies\nAll of these can be installed through pip or conda.\n* [numpy](https://docs.scipy.org/doc/numpy/user/install.html)\n* [scipy](https://www.scipy.org/install.html)\n* [h5py](https://pypi.org/project/h5py/)\n* [pathlib2](https://pypi.org/project/pathlib2/) (backport of\n  `pathlib` to pre-3.4 python)\n\nromSpline requires NumPy, SciPy, and H5py, which come with most Python distributions. For parallelization, which is useful but not necessary for some of the cross-validation routines, romSpline currently uses the concurrent.futures module. If you are using Python 2 and do not have concurrent.futures installed you may install it using pip:\n\n    pip install futures\n\nFuture versions of romSpline will not use concurrent.futures.\n\n\n### Getting started ###\n\nSee the accompanying IPython notebooks (romSpline_example.ipynb and errors_example.ipynb) for simple tutorials on using the code and estimating\nerrors of the reduced-order spline interpolant for predicting new values. \n\n#### Author information ####\nCopyright (C) 2015 Chad Galley (*crgalley \"at\" tapir \"dot\" caltech \"dot\" edu*). \nReleased under the MIT/X Consortium license.\nComments and requests welcome.\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A Python package for building reduced-order models to interpolate univariate data.",
    "version": "1.1.6",
    "project_urls": {
        "Homepage": "https://github.com/crgalley/romspline/"
    },
    "split_keywords": [
        "reduced",
        "order",
        "model",
        "spline",
        "interpolation",
        "data",
        "compression",
        "reduction"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "adbdfecd6ac66080fb86bd07100985d7946e40ff24e67172377207525ea41b0e",
                "md5": "ad9018f6b7320326282edd96eabb5e4a",
                "sha256": "f9a80690f252864933064b4ebb3a1f5ea534bf8d12951969cea8bb5af4f8e56e"
            },
            "downloads": -1,
            "filename": "romspline-1.1.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ad9018f6b7320326282edd96eabb5e4a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 43750,
            "upload_time": "2020-02-05T21:15:28",
            "upload_time_iso_8601": "2020-02-05T21:15:28.912831Z",
            "url": "https://files.pythonhosted.org/packages/ad/bd/fecd6ac66080fb86bd07100985d7946e40ff24e67172377207525ea41b0e/romspline-1.1.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ffee5a80838f0263add7923744ab5ef1ee2e100c34182421ac463b8d36c4caff",
                "md5": "13b15d029ca6a0ead8b90fe1883fecd8",
                "sha256": "20d5788063853656c072dc208970a2d7ba19b376814418f9198b6e5a2d1ec1e6"
            },
            "downloads": -1,
            "filename": "romspline-1.1.6.tar.gz",
            "has_sig": false,
            "md5_digest": "13b15d029ca6a0ead8b90fe1883fecd8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 39786,
            "upload_time": "2020-02-05T21:15:30",
            "upload_time_iso_8601": "2020-02-05T21:15:30.226646Z",
            "url": "https://files.pythonhosted.org/packages/ff/ee/5a80838f0263add7923744ab5ef1ee2e100c34182421ac463b8d36c4caff/romspline-1.1.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-02-05 21:15:30",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "crgalley",
    "github_project": "romspline",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "romspline"
}
        
Elapsed time: 0.54414s