示例#1
0
文件: dao.py 项目: jaredly/guided-ml
 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)
示例#2
0
文件: dao.py 项目: jaredly/guided-ml
 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