def fromJson(obj, exp): test_conf = TestConfiguration.fromJson(obj['test_conf'], exp) conf = LogisticRegressionConfiguration(obj['num_folds'], obj['sample_weight'], obj['families_supervision'], obj['optim_algo'], test_conf) conf.c = LearningParameter.fromJson(obj['c']) conf.penalty = LearningParameter.fromJson(obj['penalty']) conf.optim_algo = obj['optim_algo'] return conf
def fromJson(obj, exp): conf = SvcConfiguration(obj['num_folds'], obj['sample_weight'], obj['families_supervision']) ClassifierConfiguration.setTestConfiguration(conf, obj, exp) conf.c = LearningParameter.fromJson(obj['c']) return conf
def fromJson(obj, exp): test_conf = TestConfiguration.fromJson(obj['test_conf'], exp) conf = SvcConfiguration(obj['num_folds'], obj['sample_weight'], obj['families_supervision'], test_conf) conf.c = LearningParameter.fromJson(obj['c']) return conf