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 = 30, trace = FALSE, epochs = 50, batch_size = 20,
ml_trace = 0, n_cores = 2, data_folds = 2, pl_max_steps = 2, pl_max = 1, pl_anchor =
1, pl_min = 0, sustain_track = TRUE, sustain_iso_code = "DEU", data_val_size = 0.25,
lr_rate = 0.001, lr_warm_up_ratio = 0.01)
)
Arguments
- object_name
string
Name of the object to generate the arguments for.- method
string
Name of the method of the object to generate the arguments for.- var_objects
list
of other objects which should be combined with the other arguments.- necessary_objects
list
of other objects which are part of every combination.- var_override
Named
list
containing 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()