View source: R/estimate_rest.R
| py_estimate_rest | R Documentation |
estimate_rest with Python in a Separate ProcessRun estimate_rest with Python in a Separate Process
py_estimate_rest(
...,
pyenv_function = function() {
rester::py_require_rester()
},
show = FALSE
)
... |
arguments to pass to |
pyenv_function |
function that sets up Python in the child process.
By default, it uses |
show |
Logical, whether to show the standard output on the
screen while the child process is running, passed to |
Output from estimate_rest().
# Runs only after ar_setup(), so Python is not set up otherwise
if (requireNamespace("callr", quietly = TRUE) &&
ar_have_repo() && ar_have_weights("linear_sleepstages")) {
data = ar_example_data(n_hours = 2.5)
out = py_estimate_rest(data, model = "linear_sleepstages",
context_window_shift = 32L)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.