get_n_chunks: Get the number of chunks/sequences for each case

View source: R/utils_DataManager.R

get_n_chunksR Documentation

Get the number of chunks/sequences for each case

Description

Function for calculating the number of chunks/sequences for every case.

Usage

get_n_chunks(text_embeddings, features, times, pad_value = -100L)

Arguments

text_embeddings

data.frame or array containing the text embeddings.

features

int Number of features within each sequence.

times

int Number of sequences.

pad_value

int Value indicating padding. This value should no be in the range of regluar values for computations. Thus it is not recommended to chance this value. Default is -100. Allowed values: x <= -1

Value

Namedvector of integers representing the number of chunks/sequences for every case.

See Also

Other Utils Developers: auto_n_cores(), create_object(), create_synthetic_units_from_matrix(), generate_id(), get_synthetic_cases_from_matrix(), get_time_stamp(), matrix_to_array_c(), tensor_to_matrix_c(), to_categorical_c()


aifeducation documentation built on Nov. 19, 2025, 5:08 p.m.