Learn R Programming

aifeducation (version 1.0.2)

matrix_to_array_c: Reshape matrix to array

Description

Function written in C++ for reshaping a matrix containing sequential data into an array for use with keras.

Usage

matrix_to_array_c(matrix, times, features)

Value

Returns an array. The first dimension corresponds to the cases, the second to the times, and the third to the features.

Arguments

matrix

matrix containing the sequential data.

times

uword Number of sequences.

features

uword Number of features within each sequence.

See Also

Other Auxiliary Functions: get_alpha_3_codes(), summarize_tracked_sustainability(), to_categorical_c()