Skip to content

Commit 0fc0098

Browse files
authored
Fix infer_trained_model API (#2786)
It can return list of lists of integers and floats.
1 parent 0f7334a commit 0fc0098

File tree

6 files changed

+76
-6
lines changed

6 files changed

+76
-6
lines changed

output/openapi/elasticsearch-openapi.json

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

output/openapi/elasticsearch-serverless-openapi.json

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

output/schema/schema-serverless.json

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

output/schema/schema.json

Lines changed: 22 additions & 2 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: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/ml/_types/inference.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,13 @@ export class TrainedModelInferenceFeatureImportance {
454454
classes?: TrainedModelInferenceClassImportance[]
455455
}
456456

457-
export type PredictedValue = string | double | boolean | integer
457+
export type PredictedValue =
458+
| string
459+
| double
460+
| double[]
461+
| boolean
462+
| integer
463+
| integer[]
458464

459465
export class InferenceResponseResult {
460466
/**

0 commit comments

Comments
 (0)