Пример #1
0
 def fromJson(obj):
     validation_conf = None
     if obj['validation_conf'] is not None:
         validation_conf = ValidationDatasetConf.fromJson(
             obj['validation_conf'])
     conf = GornitzConfiguration(obj['auto'], obj['budget'], obj['batch'],
                                 validation_conf)
     return conf
 def fromJson(obj):
     validation_conf = None
     if obj['validation_conf'] is not None:
         validation_conf = ValidationDatasetConf.fromJson(
             obj['validation_conf'])
     binary_model_conf = ClassifierConfFactory.getFactory().fromJson(
         obj['models_conf']['binary'])
     conf = RandomSamplingConfiguration(obj['auto'], obj['budget'], obj['batch'],
                                        binary_model_conf, validation_conf)
     return conf
Пример #3
0
 def fromJson(obj):
     validation_conf = None
     if obj['validation_conf'] is not None:
         validation_conf = ValidationDatasetConf.fromJson(
             obj['validation_conf'])
     binary_model_conf = ClassifierConfFactory.getFactory().fromJson(
         obj['models_conf']['binary'])
     conf = AladinConfiguration(obj['auto'], obj['budget'],
                                obj['num_annotations'], binary_model_conf,
                                validation_conf)
     return conf
 def fromJson(obj):
     validation_conf = None
     if obj['validation_conf'] is not None:
         validation_conf = ValidationDatasetConf.fromJson(
             obj['validation_conf'])
     multiclass_model_conf = ClassifierConfFactory.getFactory().fromJson(
         obj['models_conf']['multiclass'])
     rare_category_detection_conf = RareCategoryDetectionStrategy.fromJson(
         obj['rare_category_detection_conf'])
     conf = RareCategoryDetectionConfiguration(
         obj['auto'], obj['budget'], rare_category_detection_conf,
         multiclass_model_conf, validation_conf)
     return conf
Пример #5
0
 def fromJson(obj):
     validation_conf = None
     if obj['validation_conf'] is not None:
         validation_conf = ValidationDatasetConf.fromJson(
             obj['validation_conf'])
     rare_category_detection_conf = RareCategoryDetectionStrategy.fromJson(
         obj['rare_category_detection_conf'])
     binary_model_conf = ClassifierConfFactory.getFactory().fromJson(
         obj['models_conf']['binary'])
     conf = IlabConfiguration(obj['auto'], obj['budget'],
                              rare_category_detection_conf,
                              obj['num_uncertain'], obj['eps'],
                              binary_model_conf,
                              validation_conf)
     return conf