コード例 #1
0
ファイル: service.py プロジェクト: sigopt/sigopt-python
 def iterate_runs_by_filters(self, filters, project=None, client=None):
     if project is None:
         client, project = SigOptFactory.from_default_project(
         ).ensure_project_exists()
     return (
         self.conn.clients(client).projects(project).training_runs().fetch(
             filters=json.dumps(filters)).iterate_pages())
コード例 #2
0
def start_worker(experiment_id, command, run_options, source_file):
    '''Start a worker for the given Experiment.'''
    factory = SigOptFactory.from_default_project()
    factory.set_up_cli()
    try:
        experiment = factory.get_experiment(experiment_id)
    except ValueError as ve:
        raise click.ClickException(str(ve))
    cli_experiment_loop(config, experiment, command, run_options, source_file)
コード例 #3
0
ファイル: service.py プロジェクト: sigopt/sigopt-python
 def fetch_experiment(self, experiment_id):
     factory = SigOptFactory.from_default_project()
     return factory.get_experiment(experiment_id)