Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ModelCard infrastructure (including implementation and testing) (#…
…243) * Add ModelCard infrastructure (including implementation and testing) Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Fix dependencies and language level of ModelCard Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Fix dependency issues Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Add license header to all new files Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Fix formatting issues Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Fix dependency issues Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Make all classes constituting ModelCard final Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Replace assert statements with assertEquals Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Use Path object instead of String and use temp files when testing Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Have list items display to user 0-indexed Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Make schema version a static final string Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Use self-generated testing data files Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Refactor constructor of TrainingDetails Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Switch field type of configuredParams from Map to JsonNode Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Refactor code for checking whether a value is numeric and use entrySet Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Implement equals and hashCode in all ModelCard classes Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Implement deserializeFromJson Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Make mapper package private Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Accept File as a type in UsageDetails Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Add more detail to command explanation in UsageDetails Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Return an unmodifiable view of collections in getters Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Fix styling issues Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Flatten configuredParams map Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Separate UsageDetails and ModelCardCLI and create UsageDetailsBuilder Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Remove addMetric from TestingDetails to make the class immutable Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Enable deserialization of model cards that do not have UsageDetails specified Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Remove redundant code from constructors and add license header to all files Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Include UsageDetails in json schema for all possible scenarios Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Allow user to use the same shell to write the UsageDetails for different model cards Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Remove processNestedParams method to avoid redundancy Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca> * Return an unmodifiable view of a map Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
- Loading branch information