Skip to content

Commit

Permalink
Fix infer_trained_model API (#2786)
Browse files Browse the repository at this point in the history
It can return list of lists of integers and floats.
  • Loading branch information
pquentin authored Aug 21, 2024
1 parent 0f7334a commit 0fc0098
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 6 deletions.
12 changes: 12 additions & 0 deletions output/openapi/elasticsearch-openapi.json

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

12 changes: 12 additions & 0 deletions output/openapi/elasticsearch-serverless-openapi.json

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

24 changes: 22 additions & 2 deletions output/schema/schema-serverless.json

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

24 changes: 22 additions & 2 deletions output/schema/schema.json

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

2 changes: 1 addition & 1 deletion output/typescript/types.ts

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

8 changes: 7 additions & 1 deletion specification/ml/_types/inference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,13 @@ export class TrainedModelInferenceFeatureImportance {
classes?: TrainedModelInferenceClassImportance[]
}

export type PredictedValue = string | double | boolean | integer
export type PredictedValue =
| string
| double
| double[]
| boolean
| integer
| integer[]

export class InferenceResponseResult {
/**
Expand Down

0 comments on commit 0fc0098

Please sign in to comment.