Skip to content

Commit

Permalink
Fix Get trained models statistics API types (#2763)
Browse files Browse the repository at this point in the history
* Fix Get trained models statistics API types

* Push schema changes

* Use EpochTime<UnitMillis>
  • Loading branch information
svalbuena authored Aug 6, 2024
1 parent 7f118dc commit d1a0565
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
22 changes: 17 additions & 5 deletions output/schema/schema.json

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

4 changes: 2 additions & 2 deletions output/typescript/types.ts

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

4 changes: 2 additions & 2 deletions specification/ml/_types/TrainedModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class TrainedModelDeploymentStats {
* The deployment stats for each node that currently has the model allocated.
* In serverless, stats are reported for a single unnamed virtual node.
*/
nodes: TrainedModelDeploymentNodesStats
nodes: TrainedModelDeploymentNodesStats[]
/** The number of allocations requested. */
number_of_allocations: integer
/** The number of inference requests that can be queued before new requests are rejected. */
Expand Down Expand Up @@ -120,7 +120,7 @@ export class TrainedModelInferenceStats {
/** The number of inference calls where all the training features for the model were missing. */
missing_all_fields_count: integer
/** The time when the statistics were last updated. */
timestamp: DateTime
timestamp: EpochTime<UnitMillis>
}

export class TrainedModelSizeStats {
Expand Down

0 comments on commit d1a0565

Please sign in to comment.