reformat_features¶
Module: reformat_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:
- Arno Klein, 2015 (arno@sagebase.org) http://binarybottle.com
Copyright 2015, Sage Bionetworks (http://sagebase.org), Apache v2.0 License
-
mhealthx.reformat_features.
format_openSMILE_output
(input_file)¶ Format the output from openSMILE’s SMILExtract command.
- input_file : string
- openSMILE’s SMILExtract command output .csv file
- feature_table : pandas DataFrame (N rows x 2 columns)
- feature names and values
>>> from mhealthx.reformat_features import format_openSMILE_output >>> input_file = '/Users/arno/csv/test1.csv' >>> feature_table = format_openSMILE_output(input_file)