def fromJson(obj, db, cursor): conf = ProjectionConfFactory.getFactory().fromJson(obj['conf']) experiment = ProjectionExperiment(obj['project'], obj['dataset'], db, cursor) Experiment.expParamFromJson(experiment, obj) experiment.setConf(conf) return experiment
def fromJson(obj, db, cursor): experiment = ClassificationExperiment(obj['project'], obj['dataset'], db, cursor) Experiment.expParamFromJson(experiment, obj) classification_conf = ClassifierConfFactory.getFactory().fromJson( obj['classification_conf'], experiment) experiment.setClassifierConf(classification_conf) return experiment
def fromJson(obj, db, cursor): experiment = ActiveLearningExperiment(obj['project'], obj['dataset'], db, cursor) Experiment.expParamFromJson(experiment, obj) experiment.labeling_method = obj['labeling_method'] # Validation configuration experiment.validation_conf = None if obj['validation_conf'] is not None: experiment.validation_conf = TestConfiguration.fromJson(obj['validation_conf'], experiment) experiment.conf = ActiveLearningConfFactory.getFactory().fromJson(obj['conf'], experiment) return experiment
def fromJson(obj, db, cursor): experiment = ValidationExperiment(obj['project'], obj['dataset'], db, cursor) Experiment.expParamFromJson(experiment, obj) return experiment
def fromJson(obj, db, cursor): conf = ClusteringConfFactory.getFactory().fromJson(obj['conf']) experiment = ClusteringExperiment(obj['project'], obj['dataset'], db, cursor, conf) Experiment.expParamFromJson(experiment, obj) return experiment
def fromJson(obj, db, cursor): experiment = DescriptiveStatisticsExperiment(obj['project'], obj['dataset'], db, cursor) Experiment.expParamFromJson(experiment, obj) return experiment