-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ModelCard infrastructure (including implementation and testing) #243
Conversation
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall it looks good, but there's a number of things we want to sort out.
First, all the new files need a license header, similar to the ones in other Tribuo source files.
Second, the output-json folder shouldn't be checked in, as far as I can tell it isn't used to validate output.
Third any data files that are necessary should be in src/test/resources rather than src/test/input-data. That way Maven will know to put them in the classpath of the test classes. We also can't distribute real data files, so let's come up with alternatives where you've used them.
Fourth, the formatting should be consistent, so that's using curly braces on single statements and no one line ifs or fors.
I've made more specific comments on other issues, so we can discuss them in those threads.
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
I made edits for most of the suggested changes - I just had a few specific questions about some of the comments (which I've still left as unresolved above). I was also curious about the PR failures. I'm still not entirely sure what's causing them (when I run Another thing that I was recently thinking about is the precondition I currently have for UsageDetails component of ModelCard. In my head, I always assumed that a user would first build their model & the ModelCard, then save the ModelCard to file, and then afterwards run the CLI to update the UsageDetails component. As a result, my implementation for Thanks for all the help! |
I thought I'd mentioned this in the review but I must have forgotten, I think the As for the save method, I think it'll become clearer once the've been split in two. At that point we can have the |
Yes, that makes sense - I have right now combined too many things in I can have If I am to follow this design, would it make more sense for ModelCardCLI to just append the extra details to the |
I think it might be easier to have the |
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Got it - that makes sense. I'll start separating UsageDetails and ModelCardCLI (my plan is to have it done by the end of Fri, Jul 1). Then, I'll work around |
Moving things to records is lower down the priority list than the other items as I'm still thinking about if we want to depend on the model card code elsewhere in Tribuo (e.g. in ONNX export) in which case we might have to move it down to Java 8. Or decide to punt on adding model cards to ONNX exported models till the next major version when we bump everything to Java 17. The current set of Java 17 features this PR uses are easy to translate into Java 8, but records would be a bigger change. |
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
…pecified Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Interop/ModelCard/src/main/java/org/tribuo/interop/modelcard/ModelCard.java
Outdated
Show resolved
Hide resolved
Interop/ModelCard/src/main/java/org/tribuo/interop/modelcard/ModelCard.java
Show resolved
Hide resolved
Interop/ModelCard/src/main/java/org/tribuo/interop/modelcard/ModelDetails.java
Outdated
Show resolved
Hide resolved
Interop/ModelCard/src/main/java/org/tribuo/interop/modelcard/TestingDetails.java
Outdated
Show resolved
Hide resolved
Interop/ModelCard/src/main/java/org/tribuo/interop/modelcard/UsageDetailsBuilder.java
Show resolved
Hide resolved
Interop/ModelCard/src/main/java/org/tribuo/interop/modelcard/UsageDetailsBuilder.java
Outdated
Show resolved
Hide resolved
Interop/ModelCard/src/main/java/org/tribuo/interop/modelcard/UsageDetailsBuilder.java
Show resolved
Hide resolved
Interop/ModelCard/src/main/java/org/tribuo/interop/modelcard/ModelCardCLI.java
Outdated
Show resolved
Hide resolved
… files Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
…ent model cards Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
Signed-off-by: Romina Mahinpei <mahinpei@student.ubc.ca>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Romina, this looks great.
Signed-off-by: Romina Mahinpei mahinpei@student.ubc.ca
Description & Motivation
Paper reference
Model Cards for Model Reporting