Client for the training config
This commit is contained in:
+120
-4
@@ -321,7 +321,7 @@
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Mode"
|
||||
"title": "Modo"
|
||||
},
|
||||
"scheduler": {
|
||||
"anyOf": [
|
||||
@@ -332,10 +332,10 @@
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Scheduler"
|
||||
"title": "Planificador Dask"
|
||||
}
|
||||
},
|
||||
"title": "Execution",
|
||||
"title": "Ejecuci\u00f3n",
|
||||
"type": "object"
|
||||
},
|
||||
"Extract": {
|
||||
@@ -1266,6 +1266,31 @@
|
||||
"title": "Read",
|
||||
"type": "object"
|
||||
},
|
||||
"Reference": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"line_hz": {
|
||||
"default": 50,
|
||||
"enum": [
|
||||
50,
|
||||
60
|
||||
],
|
||||
"title": "Frecuencia de la red el\u00e9ctrica (Hz)",
|
||||
"type": "integer"
|
||||
},
|
||||
"name": {
|
||||
"description": "Carpeta dentro de TEA_REFERENCE_ROOT con los EDF y edades.csv",
|
||||
"pattern": "^[A-Za-z0-9._-]{1,64}$",
|
||||
"title": "Cohorte de referencia",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"name"
|
||||
],
|
||||
"title": "Reference",
|
||||
"type": "object"
|
||||
},
|
||||
"Rejection": {
|
||||
"properties": {
|
||||
"entity": {
|
||||
@@ -1947,7 +1972,8 @@
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "As Of"
|
||||
"description": "Fecha de corte de los datos (por omisi\u00f3n, hoy)",
|
||||
"title": "Datos hasta"
|
||||
},
|
||||
"execution": {
|
||||
"anyOf": [
|
||||
@@ -1966,11 +1992,51 @@
|
||||
},
|
||||
"title": "Models",
|
||||
"type": "array"
|
||||
},
|
||||
"reference": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Reference"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"title": "Training",
|
||||
"type": "object"
|
||||
},
|
||||
"TrainingConfig": {
|
||||
"properties": {
|
||||
"defaults": {
|
||||
"additionalProperties": true,
|
||||
"title": "Defaults",
|
||||
"type": "object"
|
||||
},
|
||||
"domain": {
|
||||
"title": "Domain",
|
||||
"type": "string"
|
||||
},
|
||||
"json_schema": {
|
||||
"additionalProperties": true,
|
||||
"title": "Json Schema",
|
||||
"type": "object"
|
||||
},
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"domain",
|
||||
"name",
|
||||
"json_schema",
|
||||
"defaults"
|
||||
],
|
||||
"title": "TrainingConfig",
|
||||
"type": "object"
|
||||
},
|
||||
"ValidationError": {
|
||||
"properties": {
|
||||
"ctx": {
|
||||
@@ -3190,6 +3256,56 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/models/{domain}/{name}/training-config": {
|
||||
"get": {
|
||||
"operationId": "training_config",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "domain",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Domain"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "path",
|
||||
"name": "name",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/TrainingConfig"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"summary": "Training Config",
|
||||
"tags": [
|
||||
"models"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/models/{domain}/{name}/versions": {
|
||||
"get": {
|
||||
"operationId": "versions",
|
||||
|
||||
Reference in New Issue
Block a user