get_synthetic_cases_from_matrix {aifeducation} | R Documentation |
Create synthetic cases for balancing training data
Description
This function creates synthetic cases for balancing the training with an object of the class TEClassifierRegular or TEClassifierProtoNet.
Usage
get_synthetic_cases_from_matrix(
matrix_form,
times,
features,
target,
sequence_length,
method = c("smote"),
min_k = 1,
max_k = 6
)
Arguments
matrix_form |
Named |
times |
|
features |
|
target |
Named |
sequence_length |
|
method |
|
min_k |
|
max_k |
|
Value
list
with the following components:
-
syntetic_embeddings
: Nameddata.frame
containing the text embeddings of the synthetic cases. -
syntetic_targets
: Namedfactor
containing the labels of the corresponding synthetic cases. -
n_syntetic_units
:table
showing the number of synthetic cases for every label/category.
See Also
Other data_management_utils:
create_synthetic_units_from_matrix()
,
get_n_chunks()