voxseg_/extract_feats.py
def _calculate_norm(row: pd.DataFrame) -> np.ndarray:
    '''Auxiliary function used by normalize(). Calculates the normalized features from a row of
    a pd.DataFrame containing features and mean and standard deviation information (as generated
    by _get_mean_std()).

    Args:
        row: A row of a pd.DataFrame created by extract, with additional mean and standard deviation
        columns created by  _get_mean_std().

    Returns:
        An np.ndarray containing normalized features.
    '''

    return np.array([(i - row['mean']) / row['std'] for i in row['features']])
Auxiliary function used by normalize(). Calculates the normalized features from a row of
    a pd.DataFrame containing features and mean and standard deviation information (as generated
    by _get_mean_std()).

    Args:
        row: A row of a pd.DataFrame created by extract, with additional mean and standard deviation
        columns created by  _get_mean_std().

    Returns:
        An np.ndarray containing normalized features.
    
Auxiliary function used by normalize(). Calculates the normalized features from a row of
a pd.DataFrame containing features and mean and standard deviation information (as generated
by _get_mean_std()).

A row of a pd.DataFrame created by extract, with additional mean and standard deviation
columns created by  _get_mean_std().

An np.ndarray containing normalized features.
Auxiliary function used by normalize () . Calculates the normalized features from a row of a pd . DataFrame containing features and mean and standard deviation information ( as generated by _get_mean_std () ) . A row of a pd . DataFrame created by extract with additional mean and standard deviation columns created by _get_mean_std () . An np . ndarray containing normalized features .
def _calculate_norm(row: pd.DataFrame) -> np.ndarray:
    return np.array([(i - row['mean']) / row['std'] for i in row['features']])
def _calculate_norm ( row : pd . DataFrame ) -> np . ndarray : return np . array ( [ ( i - row [ 'mean' ] ) / row [ 'std' ] for i in row [ 'features' ] ] )
Auxiliary function used by normalize().
Auxiliary function used by normalize () .
'''Auxiliary function used by normalize(). Calculates the normalized features from a row of
    a pd.DataFrame containing features and mean and standard deviation information (as generated
    by _get_mean_std()).

    Args:
        row: A row of a pd.DataFrame created by extract, with additional mean and standard deviation
        columns created by  _get_mean_std().

    Returns:
        An np.ndarray containing normalized features.
    '''
row
pd.DataFrame