Exemple #1
0
class DebugImagesRequest(Base):
    metrics: Sequence[TaskMetric] = ListField(
        items_types=TaskMetric, validators=[Length(minimum_value=1)])
    iters: int = IntField(default=1, validators=validators.Min(1))
    navigate_earlier: bool = BoolField(default=True)
    refresh: bool = BoolField(default=False)
    scroll_id: str = StringField()
Exemple #2
0
class EditHyperParamsRequest(TaskUpdateRequest):
    hyperparams: Sequence[HyperParamItem] = ListField(
        [HyperParamItem], validators=Length(minimum_value=1))
    replace_hyperparams = StringField(
        validators=Enum(*get_options(ReplaceHyperparams)),
        default=ReplaceHyperparams.none,
    )
Exemple #3
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),
            )
        ],
    )
Exemple #4
0
class DeleteConfigurationRequest(TaskRequest):
    configuration: Sequence[str] = ListField(
        [str], validators=Length(minimum_value=1))
    force = BoolField(default=False)
Exemple #5
0
class EditConfigurationRequest(TaskRequest):
    configuration: Sequence[Configuration] = ListField(
        [Configuration], validators=Length(minimum_value=1))
    replace_configuration = BoolField(default=False)
    force = BoolField(default=False)
Exemple #6
0
class Configuration(models.Base):
    name = StringField(required=True, validators=Length(minimum_value=1))
    value = StringField(required=True)
    type = StringField()
    description = StringField()
Exemple #7
0
class DeleteHyperParamsRequest(TaskRequest):
    hyperparams: Sequence[HyperParamKey] = ListField(
        [HyperParamKey], validators=Length(minimum_value=1))
    force = BoolField(default=False)
Exemple #8
0
class MoveRequest(models.Base):
    ids = ListField([str], validators=Length(minimum_value=1))
    project = fields.StringField()
    project_name = fields.StringField()
Exemple #9
0
class MultiTaskRequest(models.Base):
    tasks = ListField([str], validators=Length(minimum_value=1))
Exemple #10
0
class DeleteArtifactsRequest(TaskRequest):
    artifacts = ListField([ArtifactId], validators=Length(minimum_value=1))
    force = BoolField(default=False)
Exemple #11
0
class DeleteModelsRequest(TaskRequest):
    models: Sequence[ModelItemKey] = ListField(
        [ModelItemKey], validators=Length(minimum_value=1))
Exemple #12
0
class DeleteConfigurationRequest(TaskUpdateRequest):
    configuration: Sequence[str] = ListField(
        [str], validators=Length(minimum_value=1))
Exemple #13
0
class DeleteHyperParamsRequest(TaskUpdateRequest):
    hyperparams: Sequence[HyperParamKey] = ListField(
        [HyperParamKey], validators=Length(minimum_value=1))
Exemple #14
0
class DeleteArtifactsRequest(TaskUpdateRequest):
    artifacts = ListField([ArtifactId], validators=Length(minimum_value=1))
Exemple #15
0
class MakePublicRequest(models.Base):
    ids = ListField(items_types=str, validators=[Length(minimum_value=1)])
Exemple #16
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()
Exemple #17
0
class MultiTaskScalarMetricsIterHistogramRequest(HistogramRequestBase):
    tasks: Sequence[str] = ListField(
        items_types=str,
        validators=[Length(minimum_value=1, maximum_value=10)])
Exemple #18
0
class HyperParamKey(models.Base):
    section = StringField(required=True, validators=Length(minimum_value=1))
    name = StringField(nullable=True)
Exemple #19
0
class TaskMetricsRequest(Base):
    tasks: Sequence[str] = ListField(items_types=str,
                                     validators=[Length(minimum_value=1)])
    event_type: EventType = ActualEnumField(EventType, required=True)
Exemple #20
0
class BatchRequest(Base):
    ids: Sequence[str] = ListField([str], validators=Length(minimum_value=1))