示例#1
0
文件: train.py 项目: will3b/SecuML
 def add_to_db(self):
     from secuml.exp.diadem import add_diadem_exp_to_db
     Experiment.add_to_db(self)
     add_diadem_exp_to_db(self.session, self.exp_conf.exp_id,
                          self.exp_conf.dataset_conf.dataset_id,
                          self.exp_conf.fold_id, 'train',
                          classifier_conf=self.exp_conf.core_conf)
示例#2
0
 def add_to_db(self):
     Experiment.add_to_db(self)
     al_exp = ActiveLearningExpAlchemy(id=self.exp_id,
                                       current_iter=0,
                                       finished=False)
     self.session.add(al_exp)
     self.session.flush()
示例#3
0
 def add_to_db(self):
     Experiment.add_to_db(self)
     from secuml.exp.diadem import add_diadem_exp_to_db
     add_diadem_exp_to_db(self.session,
                          self.exp_conf.exp_id,
                          self.exp_conf.fold_id,
                          self.kind,
                          alerts_conf=self.alerts_conf,
                          classifier_conf=self.exp_conf.core_conf)
示例#4
0
文件: __init__.py 项目: will3b/SecuML
 def add_to_db(self):
     Experiment.add_to_db(self)
     features_set_id = self.exp_conf.features_conf.set_id
     annotations_file = self.exp_conf.annotations_conf.annotations_filename
     stats_exp = FeaturesAnalysisExpAlchemy(
         id=self.exp_id,
         features_set_id=features_set_id,
         annotations_filename=annotations_file)
     self.session.add(stats_exp)
     self.session.flush()
示例#5
0
 def add_to_db(self):
     Experiment.add_to_db(self)
     has_ground_truth = self.exp_conf.dataset_conf.has_ground_truth
     dataset_id = self.exp_conf.dataset_conf.dataset_id
     self.session.add(
         DiademExpAlchemy(exp_id=self.exp_conf.exp_id,
                          dataset_id=dataset_id,
                          fold_id=self.exp_conf.fold_id,
                          type=self.kind,
                          perf_monitoring=has_ground_truth))
     self.session.flush()
示例#6
0
 def add_to_db(self):
     Experiment.add_to_db(self)
     self.session.add(DiademExpAlchemy(exp_id=self.exp_conf.exp_id,
                                       fold_id=self.exp_conf.fold_id,
                                       type=self.kind))
     self.session.flush()