tensorflow / tfx-addons

Developers helping developers. TFX-Addons is a collection of community projects to build new components, examples, libraries, and tools for TFX. The projects are organized under the auspices of the special interest group, SIG TFX-Addons. Join the group at http://goo.gle/tfx-addons-group

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Model Card Component to generate reports about pushed models

hanneshapke opened this issue · comments

Expected Component Behavior

The purpose of this component is to use schemaGen and StatisticsGen output and generate an html version of a model card for the produced model version after the model was pushed to its destination.

The component is acting as a wrapper for model_card_toolkit.ModelCardToolkit.
Key parameters for ModelCardToolkit like model_card.model_parameters.data.train.graphics.description, model_card.model_parameters.data.eval.graphics.description, and/or model_card.quantitative_analysis.graphics.description are passed to the component as args as they won't change between pipeline runs.

ModelCardToolkit connects with the MLMD for dynamic information like data statistics. With all information about the pipeline run, ModelCardToolkit generates an html page (based on mct.export_format() and tf.io.write_file) and then saves the html page to a provided path and registers the component output with the MLMD.

A component stub based on TFX 0.2X exists and could be used as a starting point.

  • Model cards [link]

Hi Hannes. It was great meeting with you last week! I've put together a design proposal for the project below. Would love to get your input on this.

https://docs.google.com/document/d/12RaFDQqkOpeWVvZfJo1s1-HKCW0nupJGQxTSWBdZLi0/edit?usp=sharing&resourcekey=0-0g2JkX-m-NJPy8xwNvBR5Q

Hi @shuklak13, Thank you for sharing the detailed design doc.
I left a few comments in the design doc. Happy to chat more about it if you like. Sync or async.