-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from onnela-lab/cran-rev1
Address comments from CRAN review.
- Loading branch information
Showing
6 changed files
with
71 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ Makefile | |
^LICENSE\.md$ | ||
^gptoolsStan\.Rcheck$ | ||
^.*?\.tar\.gz$ | ||
^playground$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ build | |
.DS_Store | ||
CRAN-SUBMISSION | ||
.Rhistory | ||
playground |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Package: gptoolsStan | ||
Title: Gaussian Processes on Graphs and Lattices in Stan | ||
Title: Gaussian Processes on Graphs and Lattices in 'Stan' | ||
Version: 0.1.0 | ||
Authors@R: c( | ||
person("Till", "Hoffmann", , "[email protected]", role = c("aut", "cre"), | ||
|
@@ -8,9 +8,11 @@ Authors@R: c( | |
comment = c(ORCID = "0000-0001-6613-8668"))) | ||
Description: Gaussian processes are flexible distributions to model functional data. Whilst | ||
theoretically appealing, they are computationally cumbersome except for small datasets. | ||
This package implements two methods for scaling GP inference in Stan. First, a sparse | ||
approximation of the likelihood that is generally applicable and, second, an exact method for | ||
regularly spaced data modeled by stationary kernels using fast Fourier methods. | ||
This package implements two methods for scaling Gaussian process inference in 'Stan'. First, a | ||
sparse approximation of the likelihood that is generally applicable and, second, an exact method | ||
for regularly spaced data modeled by stationary kernels using fast Fourier methods. Utility | ||
functions are provided to compile and fit 'Stan' models using the 'cmdstanr' interface. | ||
References: Hoffmann and Onnela (2022) <arXiv:2301.08836>. | ||
License: MIT + file LICENSE | ||
Encoding: UTF-8 | ||
Language: en-US | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
#' Get the gptools include path for compiling Stan programs with `cmdstanr`. | ||
#' Get the 'gptoolsStan' include path for compiling 'Stan' programs. | ||
#' | ||
#' @export | ||
#' @return Path to the directory containing source files for 'gptoolsStan' as characters. | ||
#' @examples | ||
#' \dontrun{ | ||
#' library(cmdstanr) | ||
#' library(gptoolsStan) | ||
#' | ||
#' # Compile the model with paths set up to include 'Stan' sources from 'gptoolsStan'. | ||
#' model <- cmdstan_model( | ||
#' stan_file="/path/to/your/model.stan", | ||
#' include_paths=gptools_include_path(), | ||
#' ) | ||
#' } | ||
gptools_include_path <- function() { | ||
system.file("extdata", package="gptoolsStan") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.