Function written in C++ for reshaping a matrix containing sequential data into an array for use with keras.
matrix_to_array_c(matrix, times, features)
Returns an array. The first dimension corresponds to the cases, the second to the times, and the third to the features.
matrix
containing the sequential data.
uword
Number of sequences.
uword
Number of features within each sequence.
Other Auxiliary Functions:
get_alpha_3_codes()
,
summarize_tracked_sustainability()
,
to_categorical_c()