Description Usage Arguments Value
View source: R/resampling_utils.R
Calculate bias weights
1 | calculate_bias(form, dat, phi.control, thr.rel, time, site_id, ptype, ...)
|
form |
a formula describing the learning task |
dat |
A data frame with time and site_id columns. |
phi.control |
list of parameters as returned
by function |
thr.rel |
a relevance threshold above which an observation is considered relevant. |
time |
the column name of the time-stamp |
site_id |
the name of the column containing location IDs |
ptype |
Type of spatio-temporal bias to calculate. Can include "orig", "addPhiLook", "addNoPhi" |
... |
Parameters to pass to
|
Vector of bias weights
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.