def __init__( self, uuid, experiment, created_at, updated_at, definition=None, unique_name=None, pod_id=None, id=None, # pylint:disable=redefined-builtin role=None, last_status=None, started_at=None, finished_at=None, resources=None, total_run=None): self.uuid = uuid self.unique_name = unique_name self.pod_id = pod_id self.id = id self.role = role self.experiment = experiment self.created_at = self.localize_date(created_at) self.updated_at = self.localize_date(updated_at) self.started_at = self.localize_date(started_at) self.finished_at = self.localize_date(finished_at) self.definition = definition self.last_status = last_status self.resources = resources self.total_run = total_run if all([self.started_at, self.finished_at]): self.total_run = humanize_timedelta( (self.finished_at - self.started_at).seconds)
def __init__( self, id=None, # pylint:disable=redefined-builtin user=None, uuid=None, name=None, unique_name=None, pod_id=None, project=None, build_job=None, description=None, tags=None, last_status=None, definition=None, created_at=None, updated_at=None, started_at=None, finished_at=None, is_clone=None, content=None, is_managed=None, num_jobs=0, resources=None, ttl=None, jobs=None, total_run=None): self.id = id self.user = user self.uuid = uuid self.name = name self.unique_name = unique_name self.pod_id = pod_id self.project = project self.build_job = build_job self.description = description self.tags = tags self.last_status = last_status self.definition = definition self.started_at = self.localize_date(started_at) self.finished_at = self.localize_date(finished_at) self.created_at = self.localize_date(created_at) self.updated_at = self.localize_date(updated_at) self.is_clone = is_clone self.content = content self.is_managed = is_managed self.num_jobs = num_jobs self.resources = resources self.ttl = ttl self.jobs = jobs self.total_run = None if all([self.started_at, self.finished_at]): self.total_run = humanize_timedelta( (self.finished_at - self.started_at).seconds)
def __init__( self, id=None, # pylint:disable=redefined-builtin user=None, uuid=None, name=None, unique_name=None, project=None, experiment_group=None, build_job=None, description=None, last_status=None, last_metric=None, created_at=None, updated_at=None, started_at=None, finished_at=None, is_clone=None, has_tensorboard=False, content=None, num_jobs=0, declarations=None, tags=None, resources=None, is_managed=None, run_env=None, jobs=None, ttl=None, backend=None, framework=None, total_run=None): self.id = id self.user = user self.uuid = uuid self.name = name self.unique_name = unique_name self.project = project self.experiment_group = experiment_group self.build_job = build_job self.description = description self.last_status = last_status self.last_metric = last_metric self.started_at = self.localize_date(started_at) self.finished_at = self.localize_date(finished_at) self.created_at = self.localize_date(created_at) self.updated_at = self.localize_date(updated_at) self.is_clone = is_clone self.has_tensorboard = has_tensorboard self.content = content self.num_jobs = num_jobs self.declarations = declarations self.tags = tags self.resources = resources self.is_managed = is_managed self.run_env = run_env self.jobs = jobs self.ttl = ttl self.backend = backend self.framework = framework self.total_run = None if all([self.started_at, self.finished_at]): self.total_run = humanize_timedelta( (self.finished_at - self.started_at).seconds)
def __init__( self, unique_name=None, id=None, # pylint:disable=redefined-builtin user=None, name=None, description=None, content=None, uuid=None, project=None, num_experiments=None, tags=None, group_type=None, search_algorithm=None, num_scheduled_experiments=None, num_pending_experiments=None, num_running_experiments=None, num_succeeded_experiments=None, num_failed_experiments=None, num_stopped_experiments=None, last_status=None, has_tensorboard=False, created_at=None, updated_at=None, started_at=None, finished_at=None, concurrency=None, experiments=None, backend=None, is_managed=None, total_run=None): self.unique_name = unique_name self.id = id self.user = user self.name = name self.description = description self.content = content self.uuid = uuid self.project = project self.tags = tags self.group_type = group_type self.search_algorithm = search_algorithm self.num_experiments = num_experiments self.num_scheduled_experiments = num_scheduled_experiments self.num_pending_experiments = num_pending_experiments self.num_running_experiments = num_running_experiments self.num_succeeded_experiments = num_succeeded_experiments self.num_failed_experiments = num_failed_experiments self.num_stopped_experiments = num_stopped_experiments self.created_at = self.localize_date(created_at) self.updated_at = self.localize_date(updated_at) self.started_at = self.localize_date(started_at) self.finished_at = self.localize_date(finished_at) self.has_tensorboard = has_tensorboard self.last_status = last_status self.concurrency = concurrency self.experiments = experiments self.backend = backend self.is_managed = is_managed if all([self.started_at, self.finished_at]): self.total_run = humanize_timedelta( (self.finished_at - self.started_at).seconds)