forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] Inference models management (elastic#74978)
* [ML] init tabs * [ML] init inference API service in UI * [ML] server-side routes * [ML] basic table * [ML] support deletion * [ML] delete multiple models * [ML] WIP expanded row * [ML] fix types * [ML] expanded row * [ML] fix types * [ML] fix i18n id * [ML] change server-side permission check * [ML] refactor types * [ML] show success toast on model deletion, fix models counter * [ML] update expanded row * [ML] pipelines stats * [ML] use refresh observable * [ML] endpoint to fetch associated pipelines * [ML] update the endpoint to fetch associated pipelines * [ML] show pipelines definition in expanded row * [ML] change stats layout * [ML] fix headers * [ML] change breadcrumb title * [ML] fetch models config with pipelines * [ML] change default size to 1000 * [ML] fix collections keys, fix double fetch on initial page load * [ML] adjust models deletion text * [ML] fix DFA jobs on the management page * [ML] small tabs in expanded row * [ML] fix headers text * [ML] fix models fetching without pipelines get permissions * [ML] stats rendering as a description list * [ML] fix i18n id * [ML] remove an extra copyright comment, add selectable messages * [ML] update stats on refresh
- Loading branch information
Showing
28 changed files
with
1,678 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { DataFrameAnalyticsConfig } from './data_frame_analytics'; | ||
|
||
export interface IngestStats { | ||
count: number; | ||
time_in_millis: number; | ||
current: number; | ||
failed: number; | ||
} | ||
|
||
export interface TrainedModelStat { | ||
model_id: string; | ||
pipeline_count: number; | ||
inference_stats?: { | ||
failure_count: number; | ||
inference_count: number; | ||
cache_miss_count: number; | ||
missing_all_fields_count: number; | ||
timestamp: number; | ||
}; | ||
ingest?: { | ||
total: IngestStats; | ||
pipelines: Record< | ||
string, | ||
IngestStats & { | ||
processors: Array< | ||
Record< | ||
string, | ||
{ | ||
// TODO use type from ingest_pipelines plugin | ||
type: string; | ||
stats: IngestStats; | ||
} | ||
> | ||
>; | ||
} | ||
>; | ||
}; | ||
} | ||
|
||
export interface ModelConfigResponse { | ||
created_by: string; | ||
create_time: string; | ||
default_field_map: Record<string, string>; | ||
estimated_heap_memory_usage_bytes: number; | ||
estimated_operations: number; | ||
license_level: string; | ||
metadata?: | ||
| { | ||
analytics_config: DataFrameAnalyticsConfig; | ||
input: any; | ||
} | ||
| Record<string, any>; | ||
model_id: string; | ||
tags: string; | ||
version: string; | ||
inference_config?: Record<string, any>; | ||
pipelines?: Record<string, PipelineDefinition> | null; | ||
} | ||
|
||
export interface PipelineDefinition { | ||
processors?: Array<Record<string, any>>; | ||
description?: string; | ||
} | ||
|
||
export interface ModelPipelines { | ||
model_id: string; | ||
pipelines: Record<string, PipelineDefinition>; | ||
} | ||
|
||
/** | ||
* Get inference response from the ES endpoint | ||
*/ | ||
export interface InferenceConfigResponse { | ||
trained_model_configs: ModelConfigResponse[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.