Example #1
0
class MultiTaskScalarMetricsIterHistogramRequest(HistogramRequestBase):
    tasks: Sequence[str] = ListField(
        items_types=str,
        validators=[
            Length(
                minimum_value=1,
                maximum_value=config.get(
                    "services.tasks.multi_task_histogram_limit", 10),
            )
        ],
    )
Example #2
0
class MakePublicRequest(models.Base):
    ids = ListField(items_types=str, validators=[Length(minimum_value=1)])
Example #3
0
class DeleteConfigurationRequest(TaskRequest):
    configuration: Sequence[str] = ListField(
        [str], validators=Length(minimum_value=1))
    force = BoolField(default=False)
Example #4
0
class Configuration(models.Base):
    name = StringField(required=True, validators=Length(minimum_value=1))
    value = StringField(required=True)
    type = StringField()
    description = StringField()
Example #5
0
class EditConfigurationRequest(TaskRequest):
    configuration: Sequence[Configuration] = ListField(
        [Configuration], validators=Length(minimum_value=1))
    replace_configuration = BoolField(default=False)
    force = BoolField(default=False)
Example #6
0
class MoveRequest(models.Base):
    ids = ListField([str], validators=Length(minimum_value=1))
    project = fields.StringField()
    project_name = fields.StringField()
Example #7
0
class DeleteHyperParamsRequest(TaskRequest):
    hyperparams: Sequence[HyperParamKey] = ListField(
        [HyperParamKey], validators=Length(minimum_value=1))
    force = BoolField(default=False)
Example #8
0
class MultiTaskRequest(models.Base):
    tasks = ListField([str], validators=Length(minimum_value=1))
Example #9
0
class HyperParamItem(models.Base):
    section = StringField(required=True, validators=Length(minimum_value=1))
    name = StringField(required=True, validators=Length(minimum_value=1))
    value = StringField(required=True)
    type = StringField()
    description = StringField()
Example #10
0
class DeleteModelsRequest(TaskRequest):
    models: Sequence[ModelItemKey] = ListField(
        [ModelItemKey], validators=Length(minimum_value=1))
Example #11
0
class DeleteArtifactsRequest(TaskRequest):
    artifacts = ListField([ArtifactId], validators=Length(minimum_value=1))
    force = BoolField(default=False)
Example #12
0
class DeleteConfigurationRequest(TaskUpdateRequest):
    configuration: Sequence[str] = ListField(
        [str], validators=Length(minimum_value=1))
Example #13
0
class DeleteHyperParamsRequest(TaskUpdateRequest):
    hyperparams: Sequence[HyperParamKey] = ListField(
        [HyperParamKey], validators=Length(minimum_value=1))
Example #14
0
class DeleteArtifactsRequest(TaskUpdateRequest):
    artifacts = ListField([ArtifactId], validators=Length(minimum_value=1))
Example #15
0
class MultiTaskScalarMetricsIterHistogramRequest(HistogramRequestBase):
    tasks: Sequence[str] = ListField(
        items_types=str,
        validators=[Length(minimum_value=1, maximum_value=10)])
Example #16
0
class HyperParamKey(models.Base):
    section = StringField(required=True, validators=Length(minimum_value=1))
    name = StringField(nullable=True)
Example #17
0
class TaskMetricsRequest(Base):
    tasks: Sequence[str] = ListField(items_types=str,
                                     validators=[Length(minimum_value=1)])
    event_type: EventType = ActualEnumField(EventType, required=True)
Example #18
0
class BatchRequest(Base):
    ids: Sequence[str] = ListField([str], validators=Length(minimum_value=1))