View source: R/utils_test_that.R
| generate_embeddings | R Documentation |
Functions generates a random test embedding that can be used for testing methods and functions. The embeddings have the shape (Batch, Times,Features).
generate_embeddings(times, features, seq_len, pad_value)
times |
|
features |
|
seq_len |
Numeric |
pad_value |
|
Returns an array with dim (length(seq_len),times,features).
To generate a 'PyTorch' object please use generate_tensors.
Other Utils TestThat Developers:
check_adjust_n_samples_on_CI(),
generate_args_for_tests(),
generate_tensors(),
get_current_args_for_print(),
get_fixed_test_tensor(),
get_test_data_for_classifiers(),
monitor_test_time_on_CI(),
random_bool_on_CI()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.