Skip to main content

Classes for Gaussian Process Regression fitting of 1D data with errorbars.

Project description

GPR1D
=====

Installing the GPR1D program
----------------------------

*Author: Aaron Ho (01/06/2018)*

Installation is **mandatory** for this package!

For first time users, it is strongly recommended to use the GUI
developed for this Python package. To obtain the Python package
dependencies needed to use this capability, install this package
by using the following on the command line:

.. code-block:: console
pip install [--user] GPR1D[guis]

Use the :code:`--user` flag if you do not have root access on the system
that you are working on. If you have already cloned the
repository, enter the top level of the repository directory and
use the following instead:

.. code-block:: console
pip install [--user] -e .[guis]

Removal of the :code:`[guis]` portion will no longer check for
the GUI generation and plotting packages needed for this
functionality. However, these packages are not crucial for the
base classes and algorithms.


Documentation
=============

Documentation of the equations used in the algorithm, along with
the available kernels and optimizers, can be found in docs/.
Documentation of the GPR1D module can be found on
`GitLab pages <https://aaronkho.gitlab.io/GPR1D>`_


Using the GPR1D program
-----------------------

For those who wish to include the functionality of this package
into their own Python scripts, a demo script is provided in
scripts/. The basic syntax used to create kernels, select
settings, and perform GPR fits are outlined there.

In addition, a simplified GPR1D class is available for those
wishing to distill the parameters into a subset of the most
crucial ones.

For any questions or to report bugs, please do so through the
proper channels in the GitLab repository.


*Important note for users!*

The following runtime warnings are common within this routine,
but they are filtered out by default:

.. code-block:: console
RuntimeWarning: overflow encountered in double_scalars
RuntimeWarning: invalid value encountered in true_divide
RuntimeWarning: invalid value encountered in sqrt


They normally occur when using the kernel restarts option (as
in the demo) and do not necessarily mean that the resulting
fit is poor.

Plotting the resulting fit and errors is the recommended way to
check its quality. The log-marginal-likelihood metric can also
be used, but is only valuable when comparing different fits of
the same data, ie. its absolute value is meaningless.

From v1.1.1, the adjusted R\ :sup:`2` and pseudo R\ :sup:`2`
metrics are now available. The adjusted R\ :sup:`2` metric provides
a measure of how close the fit is to the input data points. The
pseudo R\ :sup:`2` provides a measure of this closeness accounting
for the input data uncertainties.


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

GPR1D-1.1.1.tar.gz (52.0 kB view details)

Uploaded Source

Built Distribution

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

GPR1D-1.1.1-py2.py3-none-any.whl (50.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file GPR1D-1.1.1.tar.gz.

File metadata

  • Download URL: GPR1D-1.1.1.tar.gz
  • Upload date:
  • Size: 52.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.9.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.1

File hashes

Hashes for GPR1D-1.1.1.tar.gz
Algorithm Hash digest
SHA256 f1f7aef2c1ad66a7650a3612fa5821a9216035e30bf31a9aba6958f8c91f566e
MD5 a67385479baf88c8e42dd37d24894fb9
BLAKE2b-256 10899dfd4e4cb205dea3ffa703d39a40536f90418552b3ab9eb0b8d06ea6801d

See more details on using hashes here.

File details

Details for the file GPR1D-1.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: GPR1D-1.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 50.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.9.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.1

File hashes

Hashes for GPR1D-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a4f058f075218c22e844eaa215d577fb7f501f649427f7b4b46e826ac6011f8b
MD5 e967bac81d800e3281ffbf99639eeaf7
BLAKE2b-256 b9d2d17dd0cdc10b332b979937a98d118b7bb478525f5f62013b1788cbc7077e

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