Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit ee1ead6

Browse files
authored
rename the branch 'master' to 'main' (#260)
1 parent 99f3032 commit ee1ead6

File tree

17 files changed

+41
-41
lines changed

17 files changed

+41
-41
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Fixes [issue or discussion link]
1515
## Before submitting
1616

1717
Before submitting a pull request, please be sure to do the following:
18-
- [ ] Read the [How to Contribute guide](https://github.com/tensorflow/model-card-toolkit/blob/master/CONTRIBUTING.md) if this is your first contribution.
18+
- [ ] Read the [How to Contribute guide](https://github.com/tensorflow/model-card-toolkit/blob/main/CONTRIBUTING.md) if this is your first contribution.
1919
- [ ] Open an issue or discussion topic to discuss this change.
2020
- [ ] Write new tests if applicable.
2121
- [ ] Update documentation if applicable.

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- 'setup.py'
99
- 'pyproject.toml'
1010
branches:
11-
- master
11+
- main
1212
- r*
1313
pull_request:
1414
paths:
@@ -17,7 +17,7 @@ on:
1717
- 'setup.py'
1818
- 'pyproject.toml'
1919
branches:
20-
- master
20+
- main
2121
- r*
2222

2323
concurrency:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- 'model_card_toolkit/**'
77
- 'setup.py'
88
branches:
9-
- master
9+
- main
1010
- r*
1111
release:
1212
types: [published]

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ bazel run //model_card_toolkit:move_generated_files
126126

127127
Include a license at the top of new files.
128128

129-
- [Python license example](https://github.com/tensorflow/model-card-toolkit/blob/master/setup.py#L1)
130-
- [Bash license example](https://github.com/tensorflow/model-card-toolkit/blob/master/model_card_toolkit/move_generated_files.sh#L2)
129+
- [Python license example](https://github.com/tensorflow/model-card-toolkit/blob/main/setup.py#L1)
130+
- [Bash license example](https://github.com/tensorflow/model-card-toolkit/blob/main/model_card_toolkit/move_generated_files.sh#L2)
131131

132132
Bazel BUILD files also need to include a license section. See
133-
[BUILD example](https://github.com/tensorflow/model-card-toolkit/blob/master/model_card_toolkit/BUILD#L15).
133+
[BUILD example](https://github.com/tensorflow/model-card-toolkit/blob/main/model_card_toolkit/BUILD#L15).
134134

135135
**Do not** include a license at the top of Jinja template files.
136136

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Some use cases of model cards include:
88
* Informing users of ML models to make better-informed decisions about how to use them (or how not to use them).
99
* Providing model information required for effective public oversight and accountability.
1010

11-
![Generated model card image](https://raw.githubusercontent.com/tensorflow/model-card-toolkit/master/model_card_toolkit/documentation/guide/images/model_card.png)
11+
![Generated model card image](https://raw.githubusercontent.com/tensorflow/model-card-toolkit/main/model_card_toolkit/documentation/guide/images/model_card.png)
1212

1313
## Installation
1414

RELEASE.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ TFX Addons follows [Semantic Versioning 2.0](https://semver.org/) strategy.
77

88
## Making Major and Minor Releases
99

10-
1. Create new `rX.Y` branch on https://github.com/tensorflow/model-card-toolkit from `master`.
10+
1. Create new `rX.Y` branch on https://github.com/tensorflow/model-card-toolkit from `main`.
1111
2. Create new PR with updates to `version.py` against `rX.Y` branch.
12-
* Set the correct version and suffix in [version.py](https://github.com/tensorflow/model-card-toolkit/blob/master/model_card_toolkit/version.py).
13-
* Ensure proper supported Python libraries are set in [setup.py](https://github.com/tensorflow/model-card-toolkit/blob/master/setup.py).
12+
* Set the correct version and suffix in [version.py](https://github.com/tensorflow/model-card-toolkit/blob/main/model_card_toolkit/version.py).
13+
* Ensure proper supported Python libraries are set in [setup.py](https://github.com/tensorflow/model-card-toolkit/blob/main/setup.py).
1414
3. Create a [new release](https://github.com/tensorflow/model-card-toolkit/releases) from `rX.Y` branch. Create a tag with `vX.Y.Z` name.
1515
* Add updates for new features, enhancements, bug fixes
1616
* Add contributors using `git shortlog <last-version>..HEAD -s`
17-
4. Create a new PR and merge an increase of `_MINOR_VERSION` in [version.py](https://github.com/tensorflow/model-card-toolkit/blob/master/model_card_toolkit/version.py) on `master` to get ready for next release.
17+
4. Create a new PR and merge an increase of `_MINOR_VERSION` in [version.py](https://github.com/tensorflow/model-card-toolkit/blob/main/model_card_toolkit/version.py) on `main` to get ready for next release.
1818

1919
## Making Patch Releases
2020
1. Cherry-pick commits to `rX.Y` branch. Release team can just port PR by commenting "/cherry-pick rX.Y" in a merged PR.
2121
2. Create new PR with increasing `_PATCH_VERSION` in `version.py` against `rX.Y` branch.
22-
* Set the correct version and suffix in [version.py](https://github.com/tensorflow/model-card-toolkit/blob/master/model_card_toolkit/version.py).
23-
* Ensure proper supported Python libraries are set in [setup.py](https://github.com/tensorflow/model-card-toolkit/blob/master/setup.py).
22+
* Set the correct version and suffix in [version.py](https://github.com/tensorflow/model-card-toolkit/blob/main/model_card_toolkit/version.py).
23+
* Ensure proper supported Python libraries are set in [setup.py](https://github.com/tensorflow/model-card-toolkit/blob/main/setup.py).
2424
3. Create a [new release](https://github.com/tensorflow/model-card-toolkit/releases) from `rX.Y` branch. Create a tag with `vX.Y.Z` name.
2525
* Add updates for new features, enhancements, bug fixes
2626
* Add contributors using `git shortlog <last-version>..HEAD -s`
@@ -131,7 +131,7 @@ Current Release Team:
131131
#### Bug fixes and other changes
132132

133133
* Update default template layout so charts can wrap to multiple rows
134-
* Installing from source now requires [Bazel](https://docs.bazel.build/versions/master/install.html)>=2.0.0.
134+
* Installing from source now requires [Bazel](https://docs.bazel.build/versions/main/install.html)>=2.0.0.
135135
* Update model card templates to use new schema.
136136
* `model_card_toolkit.utils.validation.validate_json_schema()` can now validate both schema v0.0.1 and v0.0.2.
137137
* Add `_jinja_loader` attribute to `model_card_toolkit` to allow custom Jinja loaders.

model_card_toolkit/documentation/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,28 @@ html = mct.export_format()
3131

3232
## Tutorials
3333

34-
* [Standalone Model Card Toolkit](https://colab.sandbox.google.com/github/tensorflow/model-card-toolkit/blob/master/model_card_toolkit/documentation/examples/Standalone_Model_Card_Toolkit_Demo.ipynb)
35-
* [Scikit-Learn with Model Card Toolkit](https://colab.sandbox.google.com/github/tensorflow/model-card-toolkit/blob/master/model_card_toolkit/documentation/examples/Scikit_Learn_Model_Card_Toolkit_Demo.ipynb)
34+
* [Standalone Model Card Toolkit](https://colab.sandbox.google.com/github/tensorflow/model-card-toolkit/blob/main/model_card_toolkit/documentation/examples/Standalone_Model_Card_Toolkit_Demo.ipynb)
35+
* [Scikit-Learn with Model Card Toolkit](https://colab.sandbox.google.com/github/tensorflow/model-card-toolkit/blob/main/model_card_toolkit/documentation/examples/Scikit_Learn_Model_Card_Toolkit_Demo.ipynb)
3636

3737
If you want to try out the Model Card Toolkit (MCT) right away, you can run the
38-
[standalone Model Card Toolkit demo](https://colab.sandbox.google.com/github/tensorflow/model-card-toolkit/blob/master/model_card_toolkit/documentation/examples/Standalone_Model_Card_Toolkit_Demo.ipynb),
38+
[standalone Model Card Toolkit demo](https://colab.sandbox.google.com/github/tensorflow/model-card-toolkit/blob/main/model_card_toolkit/documentation/examples/Standalone_Model_Card_Toolkit_Demo.ipynb),
3939
or the
40-
[Scikit-Learn Model Card Toolkit demo](https://colab.sandbox.google.com/github/tensorflow/model-card-toolkit/blob/master/model_card_toolkit/documentation/examples/Scikit_Learn_Model_Card_Toolkit_Demo.ipynb),
40+
[Scikit-Learn Model Card Toolkit demo](https://colab.sandbox.google.com/github/tensorflow/model-card-toolkit/blob/main/model_card_toolkit/documentation/examples/Scikit_Learn_Model_Card_Toolkit_Demo.ipynb),
4141
which demonstrates how MCT can be used in a Scikit-Learn workspace.
4242

4343
These demos can be run directly from your browser. Click
44-
[here](https://github.com/tensorflow/model-card-toolkit/blob/master/model_card_toolkit/documentation/examples/README.md)
44+
[here](https://github.com/tensorflow/model-card-toolkit/blob/main/model_card_toolkit/documentation/examples/README.md)
4545
to learn more.
4646

4747
## Guides
4848

4949
The
50-
[Concepts guide](https://github.com/tensorflow/model-card-toolkit/blob/master/model_card_toolkit/documentation/guide/concepts.md)
50+
[Concepts guide](https://github.com/tensorflow/model-card-toolkit/blob/main/model_card_toolkit/documentation/guide/concepts.md)
5151
provides a high-level explanation of the terminology used by MCT. Use this as a
5252
reference as you read other documentation pages.
5353

5454
The
55-
[Templates page](https://github.com/tensorflow/model-card-toolkit/blob/master/model_card_toolkit/documentation/guide/templates.md)
55+
[Templates page](https://github.com/tensorflow/model-card-toolkit/blob/main/model_card_toolkit/documentation/guide/templates.md)
5656
explains how MCT uses templates as a skeleton to generate Model Card reports.
5757
You can use a premade template provided by MCT, or you can create your own
5858
template to generate Model Cards for your specific use case.

model_card_toolkit/documentation/examples/Scikit_Learn_Model_Card_Toolkit_Demo.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@
5151
" \u003ca target=\"_blank\" href=\"https://www.tensorflow.org/responsible_ai/model_card_toolkit/examples/Scikit_Learn_Model_Card_Toolkit_Demo\"\u003e\u003cimg src=\"https://www.tensorflow.org/images/tf_logo_32px.png\" /\u003eView on TensorFlow.org\u003c/a\u003e\n",
5252
" \u003c/td\u003e\n",
5353
" \u003ctd\u003e\n",
54-
" \u003ca target=\"_blank\" href=\"https://colab.research.google.com/github/tensorflow/model-card-toolkit/blob/master/model_card_toolkit/documentation/examples/Scikit_Learn_Model_Card_Toolkit_Demo.ipynb\"\u003e\u003cimg src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" /\u003eRun in Google Colab\u003c/a\u003e\n",
54+
" \u003ca target=\"_blank\" href=\"https://colab.research.google.com/github/tensorflow/model-card-toolkit/blob/main/model_card_toolkit/documentation/examples/Scikit_Learn_Model_Card_Toolkit_Demo.ipynb\"\u003e\u003cimg src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" /\u003eRun in Google Colab\u003c/a\u003e\n",
5555
" \u003c/td\u003e\n",
5656
" \u003ctd\u003e\n",
57-
" \u003ca target=\"_blank\" href=\"https://github.com/tensorflow/model-card-toolkit/blob/master/model_card_toolkit/documentation/examples/Scikit_Learn_Model_Card_Toolkit_Demo.ipynb\"\u003e\u003cimg src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" /\u003eView on GitHub\u003c/a\u003e\n",
57+
" \u003ca target=\"_blank\" href=\"https://github.com/tensorflow/model-card-toolkit/blob/main/model_card_toolkit/documentation/examples/Scikit_Learn_Model_Card_Toolkit_Demo.ipynb\"\u003e\u003cimg src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" /\u003eView on GitHub\u003c/a\u003e\n",
5858
" \u003c/td\u003e\n",
5959
" \u003ctd\u003e\n",
6060
" \u003ca href=\"https://storage.googleapis.com/tensorflow_docs/model-card-toolkit/model_card_toolkit/documentation/examples/Scikit_Learn_Model_Card_Toolkit_Demo.ipynb\"\u003e\u003cimg src=\"https://www.tensorflow.org/images/download_logo_32px.png\" /\u003eDownload notebook\u003c/a\u003e\n",

model_card_toolkit/documentation/examples/Standalone_Model_Card_Toolkit_Demo.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@
5353
" \u003ca target=\"_blank\" href=\"https://www.tensorflow.org/responsible_ai/model_card_toolkit/examples/Standalone_Model_Card_Toolkit_Demo\"\u003e\u003cimg src=\"https://www.tensorflow.org/images/tf_logo_32px.png\" /\u003eView on TensorFlow.org\u003c/a\u003e\n",
5454
" \u003c/td\u003e\n",
5555
" \u003ctd\u003e\n",
56-
" \u003ca target=\"_blank\" href=\"https://colab.research.google.com/github/tensorflow/model-card-toolkit/blob/master/model_card_toolkit/documentation/examples/Standalone_Model_Card_Toolkit_Demo.ipynb\"\u003e\u003cimg src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" /\u003eRun in Google Colab\u003c/a\u003e\n",
56+
" \u003ca target=\"_blank\" href=\"https://colab.research.google.com/github/tensorflow/model-card-toolkit/blob/main/model_card_toolkit/documentation/examples/Standalone_Model_Card_Toolkit_Demo.ipynb\"\u003e\u003cimg src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" /\u003eRun in Google Colab\u003c/a\u003e\n",
5757
" \u003c/td\u003e\n",
5858
" \u003ctd\u003e\n",
59-
" \u003ca target=\"_blank\" href=\"https://github.com/tensorflow/model-card-toolkit/blob/master/model_card_toolkit/documentation/examples/Standalone_Model_Card_Toolkit_Demo.ipynb\"\u003e\u003cimg src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" /\u003eView on GitHub\u003c/a\u003e\n",
59+
" \u003ca target=\"_blank\" href=\"https://github.com/tensorflow/model-card-toolkit/blob/main/model_card_toolkit/documentation/examples/Standalone_Model_Card_Toolkit_Demo.ipynb\"\u003e\u003cimg src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" /\u003eView on GitHub\u003c/a\u003e\n",
6060
" \u003c/td\u003e\n",
6161
" \u003ctd\u003e\n",
6262
" \u003ca href=\"https://storage.googleapis.com/tensorflow_docs/model-card-toolkit/model_card_toolkit/documentation/examples/Standalone_Model_Card_Toolkit_Demo.ipynb\"\u003e\u003cimg src=\"https://www.tensorflow.org/images/download_logo_32px.png\" /\u003eDownload notebook\u003c/a\u003e\n",

model_card_toolkit/documentation/examples/cats_vs_dogs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def create_model(
8787
https://www.tensorflow.org/guide/keras/transfer_learning.
8888
8989
This model is used in
90-
https://github.com/tensorflow/model-card-toolkit/blob/master/model_card_toolkit/documentation/examples/Standalone_Model_Card_Toolkit_Demo.ipynb.
90+
https://github.com/tensorflow/model-card-toolkit/blob/main/model_card_toolkit/documentation/examples/Standalone_Model_Card_Toolkit_Demo.ipynb.
9191
9292
Args:
9393
training_epochs: The number of epochs to train the model over. 4 by default.

0 commit comments

Comments
 (0)