def failingPeaks(path): from DataLoader import getData data = getData(path, None, True) samples = tls.getDictArray(data.Features) people = dict() peaks = dict() i = 0 for sample in samples: for f in sample.keys(): countedPeaks = [] if sample[f] is None: peak = f.split('.')[1] countedPeaks += peak if `i` in people: people[`i`] += 1 else: people[`i`] = 1 if f in peaks: peaks[peak] += 1 else: peaks[peak] = 1 i += 1
def main(useExisting=True, path="..\..\Runs\\", features=None): if path is None: path = "..\..\Runs\\" path = checkPath(path) if features is not None: features = literal_eval(features) if type(features) == list: features = featuresToRequiredDict(features) data = getData(path, features, useExisting) return data