View source: R/utils_DataManager.R
get_synthetic_cases_from_matrix | R Documentation |
This function creates synthetic cases for balancing the training with an object of the class TEClassifierRegular or TEClassifierProtoNet.
get_synthetic_cases_from_matrix(
matrix_form,
times,
features,
target,
sequence_length,
method = c("smote"),
min_k = 1,
max_k = 6
)
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 data_management_utils:
create_synthetic_units_from_matrix()
,
get_n_chunks()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.