@staticmethod
def _compute_default_label_features(labels_example: List[Message]) -> List[FeatureArray]:
    'Computes one-hot representation for the labels.'
    logger.debug('No label features found. Computing default label features.')
    eye_matrix = np.eye(len(labels_example), dtype=np.float32)
    return [FeatureArray(np.array([np.expand_dims(a, 0) for a in eye_matrix]), number_of_dimensions=3)]
Computes one-hot representation for the labels.
@staticmethod
def _compute_default_label_features(labels_example: List[Message]) -> List[FeatureArray]:
    
    logger.debug('No label features found. Computing default label features.')
    eye_matrix = np.eye(len(labels_example), dtype=np.float32)
    return [FeatureArray(np.array([np.expand_dims(a, 0) for a in eye_matrix]), number_of_dimensions=3)]