Skip to content

ML Add trained model definition status to TrainedModelConfig #2093

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 48 additions & 20 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion specification/ml/_types/Include.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,10 @@ export enum Include {
* baseline and total feature importance values are returned in the metadata
* field in the response body.
*/
total_feature_importance
total_feature_importance,

/**
* Includes the model definition status.
*/
definition_status
}
6 changes: 6 additions & 0 deletions specification/ml/_types/TrainedModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ export class TrainedModelConfig {
estimated_heap_memory_usage_bytes?: integer
/** The estimated number of operations to use the trained model. */
estimated_operations?: integer
/** True if the full model definition is present. */
fully_defined?: boolean
/** 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. */
inference_config: InferenceConfigCreateContainer
/** The input field names for the model definition. */
Expand Down Expand Up @@ -311,6 +313,10 @@ export class TrainedModelAssignmentTaskParameters {
* The unique identifier for the trained model.
*/
model_id: Id
/**
* The unique identifier for the trained model deployment.
*/
deployment_id: Id
/**
* The size of the trained model cache.
* @since 8.4.0
Expand Down