Skip to main content

Gaussian processes in nonlinear least-squares fits

Project description

Documentation Status

lsqfitgp

Module for manipulating gaussian processes. Features:

  • Use gvar to keep track transparently of correlations between prior, data and posterior.

  • Fit a latent gaussian process in a nonlinear model with lsqfit.

  • autograd-friendly.

  • Supports multidimensional structured non-numerical input with named dimensions.

  • Apply arbitrary linear transformations to the process.

  • Use dictionaries to manipulate hyperparameters and hyperpriors. Use gvar.BufferDict to transparently apply transformations.

  • Get a covariance matrix for the optimized hyperparameters.

Installation

pip install lsqfitgp

Documentation

The manual is available on readthedocs. All the code is documented with docstrings, so you can also use the Python help system directly from the shell:

>>> import lsqfitgp as lgp
>>> help(lgp)
>>> help(lgp.something)

or, in an IPython shell/Jupyter notebook/Spyder IDE, use the question mark shortcut:

In [1]: lgp?

In [2]: lgp.something?

Building the manual from source

pip install sphinx<2
cd docs
make html

If you add kernels, run kernelsref.py to regenerate kernelsref.rst.

If you add a documentation page with code examples, use runcode.py to run all the code found in code sections in the rst file.

Examples

In the directory examples there are various scripts named with single letters (sorry for this nonsense notation). In an IPython shell, you can run examples/RUNALL.ipy to run all the examples and save the figures on files.

Tests

The test code is in tests. Launch pytest in the repository to run all the tests. pytest can be installed with pip install pytest.

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

lsqfitgp-0.1.4.tar.gz (32.8 kB view details)

Uploaded Source

Built Distribution

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

lsqfitgp-0.1.4-py3-none-any.whl (47.6 kB view details)

Uploaded Python 3

File details

Details for the file lsqfitgp-0.1.4.tar.gz.

File metadata

  • Download URL: lsqfitgp-0.1.4.tar.gz
  • Upload date:
  • Size: 32.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for lsqfitgp-0.1.4.tar.gz
Algorithm Hash digest
SHA256 12cb110450a8f7c7077d7255fb3af56c7499a616f8d7ed95441ca04a9ca865d8
MD5 507d45294ad0e6b64ef6b9617bd4057a
BLAKE2b-256 bacd2dd83283e77c3fa32137efa65cf4756d112b45b156130357743ce90adc7a

See more details on using hashes here.

File details

Details for the file lsqfitgp-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: lsqfitgp-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 47.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for lsqfitgp-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7645817b6189d87e6b96bc526d715ac74e2eb667acd4443571bb078b197d7490
MD5 199a5a1daab7e8d17d8f7653f2a93961
BLAKE2b-256 e99f12f7e93dc5ad262b18deb75e9f436bc731a70563f53b900a099097634bc2

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