示例#1
0
 def __init__(self, multiclass, hyperparam_conf, logger):
     Conf.__init__(self, logger)
     self.multiclass = multiclass
     self.model_class = None
     self.hyperparam_conf = hyperparam_conf
     self.accept_sparse = False
     self._set_characteristics()
示例#2
0
 def __init__(self, auto, budget, main_model_conf, validation_conf, logger):
     Conf.__init__(self, logger)
     self.auto = auto
     self.budget = budget
     self.main_model_conf = main_model_conf
     self.validation_conf = validation_conf
     self._set_strategy()
示例#3
0
文件: rcd.py 项目: zzszmyf/SecuML
 def __init__(self, classification_conf, cluster_strategy, num_annotations,
              cluster_weights, logger):
     Conf.__init__(self, logger)
     self.classification_conf = classification_conf
     self.cluster_strategy = cluster_strategy
     self.num_annotations = num_annotations
     self.cluster_weights = cluster_weights
示例#4
0
 def __init__(self, annotations_filename, annotations_id, logger):
     Conf.__init__(self, logger)
     self.annotations_filename = annotations_filename
     self.annotations_id = None
     self.annotations_type = None
     if annotations_id is not None:
         self.set_annotations_id(annotations_id)
     else:
         self.set_annotations_filename(annotations_filename)
示例#5
0
 def __init__(self,
              classifier_conf,
              test_conf,
              logger,
              validation_conf=None):
     Conf.__init__(self, logger)
     self.classifier_conf = classifier_conf
     self.test_conf = test_conf
     self.validation_conf = validation_conf
示例#6
0
文件: exp.py 项目: zzszmyf/SecuML
 def __init__(self, secuml_conf, dataset_conf, features_conf,
              annotations_conf, core_conf, name=None, parent=None):
     Conf.__init__(self, secuml_conf.logger)
     self.secuml_conf = secuml_conf
     self.dataset_conf = dataset_conf
     self.features_conf = features_conf
     self.annotations_conf = annotations_conf
     self.core_conf = core_conf
     self.name = name
     self.exp_id = None
     self.parent = parent
     self._set_exp_name()
示例#7
0
 def __init__(self,
              input_features,
              logger,
              filter_in_f=None,
              filter_out_f=None):
     Conf.__init__(self, logger)
     self.input_features = input_features
     self.filter_in_f = filter_in_f
     self.filter_out_f = filter_out_f
     self.input_type = None
     self.set_id = None
     self.files = None
     self.info = None
示例#8
0
 def __init__(self,
              input_features,
              logger,
              filter_in_filename=None,
              filter_out_filename=None):
     Conf.__init__(self, logger)
     self.input_features = input_features
     self.filter_in_filename = filter_in_filename
     self.filter_out_filename = filter_out_filename
     self.input_type = None
     self.features_set_id = None
     self.features_files_ids = []
     self.filter_in = None
     self.filter_out = None
示例#9
0
文件: features.py 项目: will3b/SecuML
 def __init__(self,
              input_features,
              sparse,
              logger,
              filter_in_f=None,
              filter_out_f=None,
              streaming=False,
              stream_batch=None):
     Conf.__init__(self, logger)
     self.input_features = input_features
     self.sparse = sparse
     self.filter_in_f = filter_in_f
     self.filter_out_f = filter_out_f
     self.streaming = streaming
     self.stream_batch = stream_batch
     self.input_type = None
     self.set_id = None
     self.files = None
     self.info = None
示例#10
0
 def __init__(self, logger, alerts_conf):
     Conf.__init__(self, logger)
     self.method = None
     self.alerts_conf = alerts_conf
示例#11
0
 def __init__(self, logger, num_components):
     Conf.__init__(self, logger)
     self.num_components = num_components
     self._set_algo()
示例#12
0
文件: optim.py 项目: zzszmyf/SecuML
 def __init__(self, num_folds, n_jobs, obj_func, logger):
     Conf.__init__(self, logger)
     self.num_folds = num_folds
     self.n_jobs = n_jobs
     self.objective_func = obj_func
示例#13
0
 def __init__(self, detection_threshold, classifier_conf, clustering_conf,
              logger):
     Conf.__init__(self, logger)
     self.detection_threshold = detection_threshold
     self.classifier_conf = classifier_conf
     self.clustering_conf = clustering_conf
示例#14
0
 def __init__(self, logger):
     Conf.__init__(self, logger)
     self.method = None
示例#15
0
 def __init__(self, logger, num_clusters, projection_conf=None):
     Conf.__init__(self, logger)
     self.num_clusters = num_clusters
     self.projection_conf = projection_conf
     self.algo = None
示例#16
0
文件: values.py 项目: zzszmyf/SecuML
 def __init__(self, values, sklearn_name, logger):
     Conf.__init__(self, logger)
     self.values = values
     self.sklearn_name = sklearn_name
     self.best_value = None
示例#17
0
文件: values.py 项目: zzszmyf/SecuML
 def __init__(self, logger):
     Conf.__init__(self, logger)
     self._hyper_values = set([])
示例#18
0
 def __init__(self, values, optim_conf, logger):
     Conf.__init__(self, logger)
     self.values = values
     self.optim_conf = optim_conf
示例#19
0
 def __init__(self, project, dataset, logger):
     Conf.__init__(self, logger)
     self.project = project
     self.dataset = dataset
     self.dataset_id = None
     self.has_ground_truth = None