Skip to contents

CRAN_Status_Badge Download R-CMD-check DOC REF REF python CRAN_License

The R package dgpsi provides R interface to Python package dgpsi for deep and linked Gaussian process emulations.

Hassle-free Python Setup
You don’t need prior knowledge of Python to start using the package, all you need is a single click in R (see Installation section below) that automatically installs and activates the required Python environment for you!

Features

dgpsi currently has following features:

  • Gaussian process emulations with separable or non-separable squared exponential and Matérn-2.5 kernels.
  • Deep Gaussian process emulations with flexible structures including:
    • multiple layers;
    • multiple GP nodes;
    • separable or non-separable squared exponential and Matérn-2.5 kernels;
    • global input connections;
    • non-Gaussian likelihoods (Poisson, Negative-Binomial, and heteroskedastic Gaussian).
  • Linked emulations of feed-forward systems of computer models by linking (D)GP emulators of deterministic individual computer models.
  • Fast Leave-One-Out (LOO) and Out-Of-Sample (OOS) validations for GP, DGP, and linked (D)GP emulators.
  • Multi-core predictions and validations for GP, DGP, and Linked (D)GP emulators.
  • Sequential designs for (D)GP emulators and bundles of (D)GP emulators.

Getting started

Installation

You can install the package from CRAN:

or its development version from GitHub:

devtools::install_github('mingdeyu/dgpsi-R')

After the installation, run

to install and activate the required Python environment. That’s it, the package is now ready to use!

Note
Always run init_py() after library(dgpsi), telling R to invoke the required Python environment.

If you experience issues while running init_py(), please try to reinstall the Python environment:

dgpsi::init_py(reinstall = T)

or uninstall completely the Python environment:

dgpsi::init_py(uninstall = T)

And then restart the R and rerun: