Exemplo n.º 1
0
 def fromJson(obj, secuml_conf):
     conf = ClassifierConfFactory.getFactory().fromJson(
         obj['classification_conf'])
     experiment = ClassificationExperiment(secuml_conf)
     experiment.initExperiment(obj['project'], obj['dataset'], create=False)
     Experiment.expParamFromJson(experiment, obj, conf)
     return experiment
Exemplo n.º 2
0
 def fromJson(obj, session):
     experiment = DescriptiveStatisticsExperiment(obj['project'],
                                                  obj['dataset'],
                                                  session,
                                                  create=False)
     Experiment.expParamFromJson(experiment, obj, None)
     return experiment
Exemplo n.º 3
0
 def fromJson(obj, session):
     experiment = ValidationExperiment(obj['project'],
                                       obj['dataset'],
                                       session,
                                       create=False)
     Experiment.expParamFromJson(experiment, obj, Configuration())
     return experiment
Exemplo n.º 4
0
 def fromJson(obj, secuml_conf):
     experiment = ActiveLearningExperiment(secuml_conf)
     experiment.initExperiment(obj['project'], obj['dataset'],
                               create=False)
     conf = ActiveLearningConfFactory.getFactory().fromJson(obj['conf'])
     Experiment.expParamFromJson(experiment, obj, conf)
     experiment.query_strategy = obj['query_strategy']
     return experiment
Exemplo n.º 5
0
 def fromJson(obj, session):
     conf = ClusteringConfFactory.getFactory().fromJson(obj['conf'])
     experiment = ClusteringExperiment(obj['project'],
                                       obj['dataset'],
                                       session,
                                       create=False)
     Experiment.expParamFromJson(experiment, obj, conf)
     return experiment
Exemplo n.º 6
0
 def fromJson(obj, secuml_conf):
     experiment = ValidationExperiment(secuml_conf)
     experiment.initExperiment(obj['project'], obj['dataset'], create=False)
     Experiment.expParamFromJson(experiment, obj, Configuration())
     return experiment
Exemplo n.º 7
0
 def fromJson(obj, secuml_conf):
     experiment = DescriptiveStatisticsExperiment(secuml_conf)
     experiment.initExperiment(obj['project'], obj['dataset'], create=False)
     Experiment.expParamFromJson(experiment, obj, None)
     return experiment