Function generates a specific number of combinations for a method. These are used for automating tests of objects.
Usage
generate_args_for_tests(
object_name,
method,
var_objects = list(),
necessary_objects = list(),
var_override = list(sustain_interval = 30L, trace = FALSE, epochs = 50L, batch_size =
20L, ml_trace = 0L, n_cores = 2L, data_folds = 2L, pl_max_steps = 2L, pl_max = 1L,
pl_anchor = 1L, pl_min = 0L, sustain_track = TRUE, sustain_iso_code = "DEU",
sustain_log_level = "error", data_val_size = 0.25, lr_rate = 0.001, lr_warm_up_ratio
= 0.01)
)Arguments
- object_name
stringName of the object to generate the arguments for.- method
stringName of the method of the object to generate the arguments for.- var_objects
listof other objects which should be combined with the other arguments.- necessary_objects
listof other objects which are part of every combination.- var_override
Named
listcontaining the arguments which should be set to a specific value for all combinations.
Note
var_objects, necessary_objects, and var_override the names must exactly match
the name of the parameter. Otherwise they are not applied. Names of arguments which are not part
a a method are ignored. #'
See also
Other Utils TestThat Developers:
check_adjust_n_samples_on_CI(),
generate_embeddings(),
generate_tensors(),
get_current_args_for_print(),
get_fixed_test_tensor(),
get_test_data_for_classifiers(),
random_bool_on_CI()