Skip to content

Commit fd4e5af

Browse files
authored
ML Add trained model definition status to TrainedModelConfig (#2093)
1 parent fb9aa45 commit fd4e5af

File tree

4 files changed

+63
-22
lines changed

4 files changed

+63
-22
lines changed

output/schema/schema.json

Lines changed: 48 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/ml/_types/Include.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,10 @@ export enum Include {
3838
* baseline and total feature importance values are returned in the metadata
3939
* field in the response body.
4040
*/
41-
total_feature_importance
41+
total_feature_importance,
42+
43+
/**
44+
* Includes the model definition status.
45+
*/
46+
definition_status
4247
}

specification/ml/_types/TrainedModel.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ export class TrainedModelConfig {
176176
estimated_heap_memory_usage_bytes?: integer
177177
/** The estimated number of operations to use the trained model. */
178178
estimated_operations?: integer
179+
/** True if the full model definition is present. */
180+
fully_defined?: boolean
179181
/** The default configuration for inference. This can be either a regression, classification, or one of the many NLP focused configurations. It must match the underlying definition.trained_model's target_type. */
180182
inference_config: InferenceConfigCreateContainer
181183
/** The input field names for the model definition. */
@@ -311,6 +313,10 @@ export class TrainedModelAssignmentTaskParameters {
311313
* The unique identifier for the trained model.
312314
*/
313315
model_id: Id
316+
/**
317+
* The unique identifier for the trained model deployment.
318+
*/
319+
deployment_id: Id
314320
/**
315321
* The size of the trained model cache.
316322
* @since 8.4.0

0 commit comments

Comments
 (0)