def __init__(self, num_max_alerts, detection_threshold, clustering_conf, logger=None): Configuration.__init__(self, logger=logger) self.num_max_alerts = num_max_alerts self.detection_threshold = detection_threshold self.clustering_conf = clustering_conf
def __init__(self, num_clusters, num_results=None, projection_conf=None, label='all', logger=None): Configuration.__init__(self, logger=logger) self.num_clusters = num_clusters if num_results is not None: self.num_results = num_results else: self.num_results = 10 self.projection_conf = projection_conf self.label = label self.algo = None
def __init__(self, num_folds, sample_weight, families_supervision, test_conf, logger=None): Configuration.__init__(self, logger=logger) self.num_folds = num_folds self.sample_weight = sample_weight self.families_supervision = families_supervision self.model_class = None self.test_conf = test_conf self.probabilist_model = self.probabilistModel() self.semi_supervised = self.semiSupervisedModel() self.feature_importance = self.featureImportance()
def fromJson(obj, session): experiment = ValidationExperiment(obj['project'], obj['dataset'], session, create=False) Experiment.expParamFromJson(experiment, obj, Configuration()) return experiment
def createValidationExperiment(self): test_dataset = self.conf.validation_conf.test_dataset test_exp = ValidationExperiment(self.secuml_conf, session=self.session) test_exp.initExperiment(self.project, test_dataset) test_exp.setConf(Configuration(self.conf.logger), self.features_filename, annotations_filename='ground_truth.csv') return test_exp
def createValidationExperiment(self): test_dataset = self.conf.validation_conf.test_dataset load_dataset = Dataset(self.project, test_dataset, self.session) if not load_dataset.isLoaded(): load_dataset.load(self.logger) # Check if the validation experiments already exists test_exp = ValidationExperiment(self.project, test_dataset, self.session) test_exp.setConf(Configuration(self.conf.logger), self.features_filename, annotations_filename='ground_truth.csv') return test_exp
def __init__(self, alerts_conf=None, logger=None): Configuration.__init__(self, logger=logger) self.method = None self.alerts_conf = alerts_conf
def __init__(self, algo, logger=None): Configuration.__init__(self, logger=logger) self.algo = algo
def fromJson(obj, secuml_conf): experiment = ValidationExperiment(secuml_conf) experiment.initExperiment(obj['project'], obj['dataset'], create=False) Experiment.expParamFromJson(experiment, obj, Configuration()) return experiment
def __init__(self, auto, budget, validation_conf, logger=None): Configuration.__init__(self, logger=logger) self.auto = auto self.budget = budget self.validation_conf = validation_conf