Description Usage Arguments Value Examples
Calculates a data frame to train classifiers
1 2 3 4 5 6 7 8 | build_train_multi(
imgs_df,
train_size_each = 50000,
preprocess_fun_img = NULL,
preprocess_fun_mask = NULL,
filter_widths = c(3, 5, 15, 31),
shape_sizes = c(51, 101, 151, 201, 251)
)
|
imgs_df |
a data frame specifying the masks and images to use, see details |
train_size_each |
number of elements to keep for each mask/image combination |
preprocess_fun_img |
optional, processing function to be applied to each image |
preprocess_fun_mask |
optional, processing function to be applied to each mask |
filter_widths |
numeric vector with the filter widths to be used |
data.frame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | params_df <- tibble::tibble(
file = c(
system.file(
"extdata", "tiny_4T1-shNT-1_layer1.png",
package = "clasifierrr"),
system.file(
"extdata", "tiny_4T1-shNT-1_layer2.png",
package = "clasifierrr")),
classif = c("spheroid", "bg"),
related_file = system.file(
"extdata", "tiny_4T1-shNT-1.png",
package = "clasifierrr")
)
trainset <- build_train_multi(
params_df,
train_size_each = 5000,
filter_widths = c(3,5), shape_sizes = c(21, 51))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.