| ar_weights | R Documentation |
The pretrained weights released at
https://github.com/NielsRLorenzen/AcceleRest/releases.
The heads "linear_sleepstages", "lstm_sleepstages", and
"linear_respevents" are used for prediction; the autoencoder weights are
the pretrained (not fine-tuned) backbones.
ar_weights(weights_dir = NULL, release = .ar_default_release)
ar_have_weights(
model = NULL,
weights_dir = ar_cache_dir(),
quiet = TRUE,
release = .ar_default_release
)
ar_download_weights(
model = NULL,
weights_dir = ar_cache_dir(),
overwrite = FALSE,
quiet = TRUE,
release = .ar_default_release,
...
)
weights_dir |
directory where the weights are (to be) stored.
If |
release |
the GitHub release tag of the weights |
model |
the models to check or download. Defaults to the three prediction heads. |
quiet |
If |
overwrite |
If |
... |
additional arguments to pass to |
A data.frame with the model name, file, URL, expected size
in bytes, and the class labels (for prediction heads).
ar_weights()
ar_have_weights()
## Not run:
# downloads ~35MB per model to ar_cache_dir()
files = ar_download_weights("linear_sleepstages")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.