sc_load_model {stepcount}R Documentation

Load Stepcount Model

Description

Load Stepcount Model

Usage

sc_load_model(
  model_type = c("ssl", "rf"),
  model_path = NULL,
  check_md5 = TRUE,
  force_download = FALSE,
  as_python = TRUE
)

sc_model_filename(model_type = c("ssl", "rf"))

sc_download_model(
  model_path,
  model_type = c("ssl", "rf"),
  check_md5 = TRUE,
  ...
)

Arguments

model_type

type of the model: either random forest (rf) or Self-Supervised Learning model (ssl)

model_path

the file path to the model. If on disk, this can be re-used and not re-downloaded. If NULL, will download to the temporary directory

check_md5

Do a MD5 checksum on the file

force_download

force a download of the model, even if the file exists

as_python

Keep model object as a python object

...

for sc_download_model, additional arguments to pass to curl::curl_download()

Value

A model from Python. sc_download_model returns a model file path.


[Package stepcount version 0.3.2 Index]