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())
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)
def fetch_experiment(self, experiment_id): factory = SigOptFactory.from_default_project() return factory.get_experiment(experiment_id)