forked from mlcommons/medperf
-
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.
Use pydantic models for entities (mlcommons#366)
* Implement benchmark pydantic model * Implement CubeModel * Make benchmark description optional * Implement DatasetModel * Remove unused import * Implement ResultModel * Progress on Benchmark Pydantic Model * Revert "Progress on Benchmark Pydantic Model" This reverts commit f8513af. * Use model validation * Allow passing entity models at instantiation * Make description optional * Use benchmark model for testing * Implement Benchmark Entity as pydantic model * Implement Cube entity as a pydantic model * Fix Cube pydantic implementation * Fix benchmark-specific tests * Implement Dataset entity as pydantic model * Add dataset status validator * Remove DatasetModel * Implement Result entity as pydantic model * Fix MockCube * Fix benchmark submission * Change to schema. Filter private fields * Fix Dataset commands * Fix MLCube commands * Fix result commands * Fix tests after merge * Remove unused mocks * Fix tests * Fix entity dicts returning None * Fix list commands * Update old entity parameters * Update compatibility test mocks * Update tests to use mocks * Update tests to specific parameters * Fix linter issues * Fix typo * Remove reduntant result schema * Remove outdated init docstring args * Add DeployableSchema * empty commit for cloudbuild * remove extra code introduced by merge main --------- Co-authored-by: hasan7n <[email protected]>
- Loading branch information
1 parent
f798481
commit c1f01c0
Showing
39 changed files
with
538 additions
and
1,327 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
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.