View source: R/utils_DataManager.R
create_synthetic_units_from_matrix | R Documentation |
Function for creating synthetic cases in order to balance the data for training with TEClassifierRegular or TEClassifierProtoNet]. This is an auxiliary function for use with get_synthetic_cases_from_matrix to allow parallel computations.
create_synthetic_units_from_matrix(
matrix_form,
target,
required_cases,
k,
method,
cat,
k_s,
max_k
)
matrix_form |
Named |
target |
Named |
required_cases |
|
k |
|
method |
|
cat |
|
k_s |
|
max_k |
|
Returns a list
which contains the text embeddings of the new synthetic cases as a named data.frame
and
their labels as a named factor
.
Other data_management_utils:
get_n_chunks()
,
get_synthetic_cases_from_matrix()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.