def getFeatures(data): """ Old and unused. Getting all wanted fetures from the raw dataset. Arguments: data {array} -- data dataframe """ selected_cols = DataColumns.getSelectedCols( ) #features selected for learning data = calculateStepTime(data) data = calculateForceDiff(data) featDF = data.loc[:, selected_cols] return (featDF)
def getAllFeatures(data): """ Old and unused. Features for left, right and both separately, separate feet might be a better option Arguments: data {array} -- data dataframe """ selected_cols = DataColumns.getSelectedCols( ) #features selected for learning data = calculateTotalForce(data) data = calculateStepTime(data) data = calculateForceDiff(data) dataL = data.loc[data["Left/Right"] == "L"] #separating to different feet dataR = data.loc[data["Left/Right"] == "R"] dataL = dataL.loc[:, selected_cols] #selecting only wanted columns dataR = dataR.loc[:, selected_cols] dataBoth = data.loc[:, selected_cols] return (dataL, dataR, dataBoth)