Skip to content

Commit 38159f2

Browse files
committed
version update for CRAN
1 parent 28933d3 commit 38159f2

9 files changed

Lines changed: 37 additions & 19 deletions

File tree

DESCRIPTION

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: dgpsi
22
Type: Package
33
Title: Interface to 'dgpsi' for Deep and Linked Gaussian Process Emulations
4-
Version: 2.1.6-9000
4+
Version: 2.2.0
55
Authors@R: c(
66
person('Deyu', 'Ming', role = c('aut', 'cre', 'cph'),
77
email = 'deyu.ming.16@ucl.ac.uk'),
@@ -12,7 +12,8 @@ Maintainer: Deyu Ming <deyu.ming.16@ucl.ac.uk>
1212
Description: Interface to the 'python' package 'dgpsi' for Gaussian process, deep Gaussian process,
1313
and linked Gaussian process emulations of computer models and systems of computer
1414
models. The implementations follow Ming & Guillas (2021) <doi:10.1137/20M1323771> and
15-
Ming, Williamson, & Guillas (2022) <doi:10.1080/00401706.2022.2124311>. To get started with the package,
15+
Ming, Williamson, & Guillas (2023) <doi:10.1080/00401706.2022.2124311> and
16+
Ming & Williamson (2023) <arXiv:2306.01212>. To get started with the package,
1617
see <https://mingdeyu.github.io/dgpsi-R/>.
1718
License: MIT + file LICENSE
1819
URL: https://github.com/mingdeyu/dgpsi-R, https://mingdeyu.github.io/dgpsi-R/

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# dgpsi 2.1.6-9000 (development version)
1+
# dgpsi 2.2.0
22

33
- The efficiency and speed of imputations involved in the training and predictions of DGP emulators are significantly improved (achieving roughly 3x faster training and imputations) by utilizing blocked Gibbs sampling that imputes latent variables layer-wise rather than node-wise. The blocked Gibbs sampling is now the default method for DGP emulator inference and can be changed back to the old node-wise approach by setting `blocked_gibbs = FALSE` in `dgp()`.
44
- One can now optimize GP components that are contained in the same layer of a DGP emulator in parallel during the DGP emulator training, using multiple cores by setting the new argument `cores` in `dgp()`. This option is useful and can accelerate the training speed when the input dimension is moderately large (in which case there is a large number of GP components to be optimized) and the optimization of GP components is computationally expensive, e.g., when `share = FALSE` in which case input dimensions to individual GP components have different lengthscales.

R/initi_py.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ init_py <- function(py_ver = NULL, dgpsi_ver = NULL, reinstall = FALSE, uninstal
3737
if ( is.null(py_ver) ) py_ver <- '3.9.13'
3838
if ( is.null(dgpsi_ver) ) {
3939
##For devel version
40-
dgpsi_ver <- c('cython>=0.29.30', 'dill>=0.3.2', 'jupyter>=1.0.0', 'matplotlib-base>=3.2.1', 'numba >=0.51.2',
41-
'numpy >=1.18.2', 'pathos >=0.2.9', 'psutil >=5.8.0', 'pybind11 >=2.10.0', 'pythran >=0.11.0',
42-
'scikit-build >=0.15.0', 'scikit-learn >=0.22.0', 'scipy >=1.4.1', 'tqdm >=4.50.2', 'tabulate >=0.8.7')
43-
env_name <- 'dgp_si_R_2_1_6_9000'
40+
#dgpsi_ver <- c('cython>=0.29.30', 'dill>=0.3.2', 'jupyter>=1.0.0', 'matplotlib-base>=3.2.1', 'numba >=0.51.2',
41+
# 'numpy >=1.18.2', 'pathos >=0.2.9', 'psutil >=5.8.0', 'pybind11 >=2.10.0', 'pythran >=0.11.0',
42+
# 'scikit-build >=0.15.0', 'scikit-learn >=0.22.0', 'scipy >=1.4.1', 'tqdm >=4.50.2', 'tabulate >=0.8.7')
43+
#env_name <- 'dgp_si_R_2_1_6_9000'
4444
##For release version
45-
#dgpsi_ver <- 'dgpsi==2.1.6'
46-
#env_name <- 'dgp_si_R_2_1_6'
45+
dgpsi_ver <- 'dgpsi==2.2.0'
46+
env_name <- 'dgp_si_R_2_2_0'
4747
} else {
4848
env_name <- paste('dgp_si_R_', gsub(".", "_", dgpsi_ver,fixed=TRUE), sep = "")
4949
dgpsi_ver <- paste('dgpsi==', dgpsi_ver, sep = "")

R/utils.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ write <- function(object, pkl_file) {
214214
#' @md
215215
#' @export
216216
set_seed <- function(seed) {
217+
seed <- as.integer(seed)
217218
set.seed(seed)
218219
reticulate::py_set_seed(seed, disable_hash_randomization = TRUE)
219220
pkg.env$dgpsi$nb_seed(seed)

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![DOC](https://img.shields.io/badge/DOC-release-brightgreen)](https://mingdeyu.github.io/dgpsi-R/)
66
[![REF](https://img.shields.io/badge/REF-Linked%20GP-informational)](https://doi.org/10.1137/20M1323771)
77
[![REF](https://img.shields.io/badge/REF-Deep%20GP-informational)](https://doi.org/10.1080/00401706.2022.2124311)
8+
[![REF](https://img.shields.io/badge/REF-Linked%20DGP-informational)](http://arxiv.org/abs/2306.01212)
89
[![python](https://img.shields.io/badge/Python-dgpsi%20v2.1.6-informational)](https://github.com/mingdeyu/DGP)
910
![CRAN_License](https://img.shields.io/cran/l/dgpsi?color=green)
1011

@@ -77,6 +78,8 @@ to install and activate the required Python environment. That's it, the package
7778
> ```
7879
7980
## References
80-
> [Ming, D., Williamson, D., and Guillas, S. (2022) Deep Gaussian process emulation using stochastic imputation. <i>Technometrics</i>. 0(0), 1-12.](https://doi.org/10.1080/00401706.2022.2124311)
81+
> [Ming, D. and Williamson, D. (2023) Linked deep Gaussian process emulation for model networks. arXiv:2306.01212](http://arxiv.org/abs/2306.01212)
82+
83+
> [Ming, D., Williamson, D., and Guillas, S. (2023) Deep Gaussian process emulation using stochastic imputation. <i>Technometrics</i>. 65(2), 150-161.](https://doi.org/10.1080/00401706.2022.2124311)
8184
8285
> [Ming, D. and Guillas, S. (2021) Linked Gaussian process emulation for systems of computer models using Mat&eacute;rn kernels and adaptive design, <i>SIAM/ASA Journal on Uncertainty Quantification</i>. 9(4), 1615-1642.](https://doi.org/10.1137/20M1323771)

inst/CITATION

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,26 @@ bibentry(bibtype = "Article",
2222
as.person("Daniel Williamson"),
2323
as.person("Serge Guillas")),
2424
journal = "Technometrics",
25-
year = "2022",
26-
volume = "0",
27-
number = "0",
28-
pages = "1--12",
25+
year = "2023",
26+
volume = "65",
27+
number = "2",
28+
pages = "150--161",
2929

3030
textVersion =
31-
paste("Ming, D., Williamson, D., and Guillas, S. (2022)",
31+
paste("Ming, D., Williamson, D., and Guillas, S. (2023)",
3232
"Deep Gaussian process emulation using stochastic imputation,",
33-
"Technometrics. (0)0, 1-12.")
33+
"Technometrics. (65)2, 150-161.")
34+
)
35+
36+
bibentry(bibtype = "Unpublished",
37+
title = "Linked deep Gaussian process emulation for model networks",
38+
author = c(as.person("Deyu Ming"),
39+
as.person("Daniel Williamson")),
40+
note = "arXiv:2306.01212",
41+
year = "2023",
42+
43+
textVersion =
44+
paste("Ming, D. and Williamson, D. (2023)",
45+
"Linked deep Gaussian process emulation for model networks,",
46+
"arXiv:2306.01212")
3447
)

vignettes/dgpsi.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ knitr::opts_chunk$set(
1616
)
1717
```
1818

19-
`dgpsi` provides a flexible toolbox for Gaussian process (GP), deep Gaussian process (DGP) and linked (D)GP emulations. In this guide, we show how to use the package to emulate a step function with a three-layered DGP structure. There are other examples showing the functionality of the package in [`Articles`](https://mingdeyu.github.io/dgpsi-R/dev/articles/index.html) on the package website, and how to customize a DGP structure. A comprehensive reference of available functions is documented in [`Reference`](https://mingdeyu.github.io/dgpsi-R/dev/reference/index.html) section of the package website.
19+
`dgpsi` provides a flexible toolbox for Gaussian process (GP), deep Gaussian process (DGP) and linked (D)GP emulations. In this guide, we show how to use the package to emulate a step function with a three-layered DGP structure. There are other examples showing the functionality of the package in [`Articles`](https://mingdeyu.github.io/dgpsi-R/articles/index.html) on the package website, and how to customize a DGP structure. A comprehensive reference of available functions is documented in [`Reference`](https://mingdeyu.github.io/dgpsi-R/reference/index.html) section of the package website.
2020

2121
## Load the package
2222

vignettes/seq_design.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ It can be seen from the plot above that with static space-filling designs, the q
262262

263263
### See also
264264

265-
See [`Sequential Design II`](https://mingdeyu.github.io/dgpsi-R/dev/articles/seq_design_2.html) for the sequential design of a bundle of DGP emulators with automatic terminations.
265+
See [`Sequential Design II`](https://mingdeyu.github.io/dgpsi-R/articles/seq_design_2.html) for the sequential design of a bundle of DGP emulators with automatic terminations.
266266

267267
### References
268268

vignettes/seq_design_2.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,4 +324,4 @@ It can be seen from the plot above that with the sequential design, emulators in
324324

325325
### See also
326326

327-
See [`Sequential Design I`](https://mingdeyu.github.io/dgpsi-R/dev/articles/seq_design.html) for the sequential design of a DGP emulator on a 2D simulator.
327+
See [`Sequential Design I`](https://mingdeyu.github.io/dgpsi-R/articles/seq_design.html) for the sequential design of a DGP emulator on a 2D simulator.

0 commit comments

Comments
 (0)