def update_feature(self, id, fid, data): feature = self.pl.update_feature(id, fid, data) raw_data = self.pl.get_raw_data(id) return utils.make_training_column(raw_data, feature)
def add_feature(self, id, name, type, args): raw_data = self.pl.get_raw_data(id) feature = {'name': name, 'type': type, 'args': args} fid = self.pl.add_feature(id, feature) feature['id'] = fid return fid, utils.make_training_column(raw_data, feature), feature