def update_data(self, id, data): self.pl.drop_data(id) raw_data, header = self.add_data(id, data) features = self.feature_list(id) return utils.make_training_data(raw_data, header, features)
def make_data(self, id): features = self.feature_list(id) header = self.pl.get_headers(id) raw_data = self.pl.get_raw_data(id) data = utils.make_training_data(raw_data, header, features) return data