Hive_ML.data_loader.feature_loader module#

Hive_ML.data_loader.feature_loader.load_feature_set(feature_set_filename, get_4D_stats=True, flatten_features=False, select_T=None)[source]#

Function to load a feature set from a filepath, including the Subject list, their corresponding labels and a list of feature names. If get_4D_stats is set to True, the 4D statistics of the feature set are returned (see utilities.feature_utils.get_4D_feature_stats() ) If flatten_features is set to True, the 3D feature set is flattened into a 2D set (see utilities.feature_utils.flatten_4D_features()) If select_T is set to an integer value, the specific sequence is extracted and returned from the 3D feature set.

Parameters:
  • feature_set_filename (Union[str, PathLike]) – Feature set file path.

  • get_4D_stats (bool) – Flag to compute and return sequence statistics.

  • flatten_features (bool) – Flag to flatten features along the sequence dimension.

  • select_T (int) – Select and return only the specified sequence.

Return type:

Tuple[ndarray, List[str], List[str], List[str], ndarray, ndarray, ndarray, ndarray]

Returns:

Feature set Array , Subject list, Subject labels, List of feature names, Mean Sequence Array, SD Sequence Array, Sum Sequence Array, Mean Delta Array.