Skip to main content

GPmp contrib: the contrib GPmp package

Project description

GPmp-contrib

gpmp-contrib extends gpmp with computer-experiment objects, multi-output model containers, Matérn model classes, sequential design procedures, set estimation tools, plots, and relaxed Gaussian-process utilities.

Use gpmp directly for core GP models, covariance functions, numerical backend operations, and low-level parameter selection. Use gpmp-contrib when a script needs a ComputerExperiment, a ModelContainer, a sequential strategy, a test problem, or reGP.

Main components

  • Model containers and Matérn classes:
    • Model_ConstantMean_Maternp_ML
    • Model_ConstantMean_Maternp_REML
    • Model_ConstantMean_Maternp_REMAP
    • Model_ConstantMean_Maternp_REMAP_logsigma2
    • Model_ConstantMean_Maternp_REMAP_logsigma2_and_logrho_prior
    • Model_Noisy_ConstantMean_Maternp_REML
  • Prior access on REMAP classes with priors:
    • get_prior(...)
    • set_prior(...)
  • Sequential strategies:
    • fixed candidate sets with SequentialStrategyGridSearch
    • SMC particle sets with SequentialStrategySMC
    • BSS-style particle sets with SequentialStrategyBSS
  • Optimization and set-estimation modules:
    • expected improvement in gpmpcontrib.optim.expectedimprovement
    • excursion sets in gpmpcontrib.optim.excursionset
    • set inversion and Pareto utilities in gpmpcontrib.optim
  • reGP utilities in gpmpcontrib.regp.
  • Parameter posterior sampling through ModelContainer.sample_parameters(...).

Package layout

  • gpmpcontrib/models/: Matérn model container classes.
  • gpmpcontrib/modelcontainer.py: multi-output model container.
  • gpmpcontrib/sequentialprediction.py: observation storage and prediction updates.
  • gpmpcontrib/sequentialstrategy.py: sequential decision strategies.
  • gpmpcontrib/optim/: EI, excursion-set, set-inversion, and Pareto tools.
  • gpmpcontrib/regp/: relaxed Gaussian-process utilities.
  • examples/: scripts using the public objects.
  • docs/: Sphinx documentation.

Requirements

  • Python >=3.9
  • gpmp >= 0.9.37
  • numpy
  • scipy>=1.12.0
  • matplotlib

Installation

Install the released package from PyPI:

pip install gpmp-contrib

This installs gpmp and the other runtime dependencies declared in pyproject.toml.

For development, clone the repository and install it in editable mode:

git clone https://github.com/gpmp-dev/gpmp-contrib.git
cd gpmp-contrib
pip install -e .

When testing against a local gpmp checkout, install gpmp first, then install gpmp-contrib in editable mode.

Minimal example

import gpmpcontrib as gpc

problem = gpc.ComputerExperiment(
    1,
    [[-1.0], [1.0]],
    single_function=lambda x: x**2,
)

The full documentation starts with docs/source/getting_started.rst and then continues through the user guide. The examples section documents model construction, noisy observations, expected improvement, excursion sets, set inversion, and reGP.

Documentation

The documentation is available at https://gpmp-dev.github.io/gpmp-contrib/.

To build it locally, install the documentation dependencies and build the HTML pages:

pip install -r docs/requirements.txt
cd docs
sphinx-build -M html source _build -E

Generate the static example figures with:

cd docs
python make_example_results.py

Authors

See AUTHORS.md.

How to cite

If you use GPmp-contrib in your research, please cite it as follows:

@software{gpmpcontrib2026,
  author       = {Emmanuel Vazquez},
  title        = {GPmp-contrib},
  year         = {2026},
  url          = {https://github.com/gpmp-dev/gpmp-contrib},
  note         = {Version 0.9.37},
}

Update the version number when citing another release.

Copyright

Copyright (C) 2022-2026 CentraleSupelec

License

GPmp-contrib is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

GPmp-contrib is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with GPmp-contrib. If not, see http://www.gnu.org/licenses/.

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

gpmp_contrib-0.9.37.tar.gz (103.7 kB view details)

Uploaded Source

Built Distribution

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

gpmp_contrib-0.9.37-py3-none-any.whl (100.5 kB view details)

Uploaded Python 3

File details

Details for the file gpmp_contrib-0.9.37.tar.gz.

File metadata

  • Download URL: gpmp_contrib-0.9.37.tar.gz
  • Upload date:
  • Size: 103.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gpmp_contrib-0.9.37.tar.gz
Algorithm Hash digest
SHA256 4e6a1a3e48ac343c74154ccbaa21546c6b61d614cf41f4297deb97ddb5850102
MD5 a31efd83fa48e6d55c2262f89d329f30
BLAKE2b-256 cf74ff88f96b04a0f95a19fa7f8fbdfdd5a63325942fc5adadd0c0c8debbecef

See more details on using hashes here.

Provenance

The following attestation bundles were made for gpmp_contrib-0.9.37.tar.gz:

Publisher: publish.yml on gpmp-dev/gpmp-contrib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gpmp_contrib-0.9.37-py3-none-any.whl.

File metadata

  • Download URL: gpmp_contrib-0.9.37-py3-none-any.whl
  • Upload date:
  • Size: 100.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gpmp_contrib-0.9.37-py3-none-any.whl
Algorithm Hash digest
SHA256 0463bfcd6572bfaba69b2b7d8012cb1972550ccb819d06ba9fd22aedf16acc5f
MD5 d58cb7161660543e379087915d84592c
BLAKE2b-256 7e425ffea88aa91adccc7ff0c5917184fa2de9b69c283141cac530678270277d

See more details on using hashes here.

Provenance

The following attestation bundles were made for gpmp_contrib-0.9.37-py3-none-any.whl:

Publisher: publish.yml on gpmp-dev/gpmp-contrib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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