View source: R/utils_general.R
| to_categorical_c | R Documentation |
Function transforming a vector of classes (int) into a binary class matrix.
to_categorical_c(class_vector, n_classes)
class_vector |
|
n_classes |
|
Returns a matrix containing the binary representation for
every class.
Other Utils Developers:
auto_n_cores(),
create_object(),
create_synthetic_units_from_matrix(),
generate_id(),
get_n_chunks(),
get_synthetic_cases_from_matrix(),
get_time_stamp(),
matrix_to_array_c(),
tensor_to_matrix_c()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.