files_to_features

Module: files_to_features

Functions for formatting feature extraction commands’ output files.

The desired output is a list with two rows: 1. feature names 2. feature values

Authors:

Copyright 2015, Sage Bionetworks (http://sagebase.org), Apache v2.0 License

mhealthx.files_to_features.format_openSMILE_output(in_file)

Format the output from openSMILE’s SMILExtract command.

in_file : string
openSMILE’s SMILExtract command output .csv file
feature_table : pandas DataFrame (N rows x 2 columns)
feature names and values
>>> from mhealthx.files_to_features import format_openSMILE_output
>>> in_file = '/Users/arno/csv/test1.csv'
>>> feature_table = format_openSMILE_output(in_file)