View source: R/utils_DataManager.R
| get_synthetic_cases_from_matrix | R Documentation |
This function creates synthetic cases for balancing the training with classifier models.
get_synthetic_cases_from_matrix(
matrix_form,
times,
features,
target,
sequence_length,
method = "knnor",
min_k = 1L,
max_k = 6L
)
matrix_form |
Named |
times |
|
features |
|
target |
Named |
sequence_length |
|
method |
|
min_k |
|
max_k |
|
list with the following components:
syntetic_embeddings: Named data.frame containing the text embeddings of the synthetic cases.
syntetic_targets: Named factor containing the labels of the corresponding synthetic cases.
n_syntetic_units: table showing the number of synthetic cases for every label/category.
Other Utils Developers:
auto_n_cores(),
create_object(),
create_synthetic_units_from_matrix(),
generate_id(),
get_n_chunks(),
get_time_stamp(),
matrix_to_array_c(),
tensor_to_matrix_c(),
to_categorical_c()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.