Description Usage Arguments Value Examples
View source: R/automatic_resource_detection.R
Estimate number of CPU and memory size for the current system and use these numbers to choose the appropriate calculation method (loops / matrix multiplication, see sim_loopR
)
1 2 3 4 5 6 7 8 | sim_auto_scale(
n_rows,
resources = NA,
row2mem_coeff = 7.62940039228619e-06,
row_cap = NA,
verbose = FALSE,
...
)
|
n_rows |
Integer. The expected number of rows in the matrix for which we are calculating row similarity. |
resources |
An optional list with |
row2mem_coeff |
Float. The coefficient that converts between |
row_cap |
Integer. Maximum number of rows for this machine. See |
verbose |
Logical. Should informative messages be printed along the way? |
... |
Additional parameters passed to |
A function to calculate similarity with n_cpu
set according to the recommendations. You need to provide X, metric
and thresh
if needed (defaults to 0). For more details see sim_loopR
)
1 | ## Not run: sim_matrix <- auto_sim_scale(nrow(X))(X, 'cosine', thresh = 0.8)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.