You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 27, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+48-9Lines changed: 48 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,14 @@
1
1
# Model Card Toolkit
2
2
3
-
The Model Card Toolkit (MCT) streamlines and automates generation of [Model Cards](https://modelcards.withgoogle.com/about)[1], machine learning documents that provide context and transparency into a model's development and performance. Integrating the MCT into your ML pipeline enables the sharing model metadata and metrics with researchers, developers, reporters, and more.
3
+
[![CI][ci_badge]][ci_link]
4
+
[![PyPI][pypi_badge]][pypi_link]
5
+
[![Documentation][docs_badge]][docs_link]
6
+
7
+
The Model Card Toolkit (MCT) streamlines and automates generation of
that provide context and transparency into a model's development and performance.
10
+
Integrating the MCT into your ML pipeline enables you to share model metadata and
11
+
metrics with researchers, developers, reporters, and more.
4
12
5
13
Some use cases of model cards include:
6
14
@@ -12,8 +20,27 @@ Some use cases of model cards include:
12
20
13
21
## Installation
14
22
15
-
The Model Card Toolkit is hosted on [PyPI](https://pypi.org/project/model-card-toolkit/), and can be installed with `pip install model-card-toolkit` (or `pip install model-card-toolkit
16
-
--use-deprecated=legacy-resolver` for versions of pip starting with 20.3). See [the installation guide](model_card_toolkit/documentation/guide/install.md) for more details.
23
+
The Model Card Toolkit is hosted on [PyPI](https://pypi.org/project/model-card-toolkit/),
24
+
and requires Python 3.7 or later.
25
+
26
+
Installing the basic, framework agnostic package:
27
+
28
+
```sh
29
+
pip install model-card-toolkit
30
+
```
31
+
32
+
If you are generating model cards for TensorFlow models, install the optional
33
+
TensorFlow dependencies to use Model Card Toolkit's TensorFlow utilities:
34
+
35
+
```sh
36
+
pip install model-card-toolkit[tensorflow]
37
+
```
38
+
39
+
You may need to append the `--use-deprecated=legacy-resolver` flag when running
40
+
versions of pip starting with 20.3.
41
+
42
+
See [the installation guide](model_card_toolkit/documentation/guide/install.md)
43
+
for more installation options.
17
44
18
45
## Getting Started
19
46
@@ -39,22 +66,34 @@ If you are using [TensorFlow Extended (TFX)](https://www.tensorflow.org/tfx), yo
39
66
incorporate model card generation into your TFX pipeline via the `ModelCardGenerator`
40
67
component.
41
68
42
-
The `ModelCardGenerator` component is moving to the
43
-
[TFX Addons](https://github.com/tensorflow/tfx-addons) library and will no longer
44
-
be packaged in Model Card Toolkit from version 2.0.0. Before you can use the
69
+
The `ModelCardGenerator` component has moved to the
70
+
[TFX Addons](https://github.com/tensorflow/tfx-addons) library and is no longer
71
+
packaged in Model Card Toolkit from version 2.0.0. Before you can use the
45
72
component, you will need to install the `tfx-addons` package:
46
73
47
74
```sh
48
75
pip install tfx-addons[model_card_generator]
49
76
```
50
77
51
-
This page will be updated to include the new links for the Model Cards in TFX
52
-
guide and the end-to-end demo when the migration is completed.
78
+
See the [ModelCardGenerator guide](https://github.com/tensorflow/tfx-addons/blob/main/tfx_addons/model_card_generator/README.md)
79
+
and run the [case study notebook](https://github.com/tensorflow/tfx-addons/blob/main/examples/model_card_generator/MLMD_Model_Card_Toolkit_Demo.ipynb)
80
+
to learn more about the component.
53
81
54
82
## Schema
55
83
56
-
Model cards are stored in proto as an intermediate format. You can see the model card JSON schema in the `schema` directory.
84
+
Model cards are stored in proto as an intermediate format. You can see the model
0 commit comments