Function written in C++ transforming a vector of classes (int) into a binary class matrix.
to_categorical_c(class_vector, n_classes)
Returns a matrix
containing the binary representation for
every class.
vector
containing integers for every class. The
integers must range from 0 to n_classes-1.
int
Total number of classes.
Other Auxiliary Functions:
array_to_matrix()
,
calc_standard_classification_measures()
,
check_embedding_models()
,
clean_pytorch_log_transformers()
,
create_iota2_mean_object()
,
create_synthetic_units()
,
generate_id()
,
get_coder_metrics()
,
get_folds()
,
get_n_chunks()
,
get_stratified_train_test_split()
,
get_synthetic_cases()
,
get_train_test_split()
,
is.null_or_na()
,
matrix_to_array_c()
,
split_labeled_unlabeled()
,
summarize_tracked_sustainability()