Skip to content

[WIP]update metrics cohen kappa #1

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

Closed
wants to merge 276 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
276 commits
Select commit Hold shift + click to select a range
8c963b1
Update multilabel_confusion_matrix.py
nataliyah123 Sep 2, 2020
d370fed
Update matthews_correlation_coefficient.py
nataliyah123 Sep 2, 2020
8d3789f
Update README.md (#2148)
seanpmorgan Sep 3, 2020
d466cb8
#2066 doctest update losses (#2138)
Harsh188 Sep 4, 2020
e5d641d
Update hamming.py
nataliyah123 Sep 4, 2020
c68e59e
Update hamming.py
nataliyah123 Sep 4, 2020
4f5f770
Update r_square.py
nataliyah123 Sep 4, 2020
fbb1551
Update matthews_correlation_coefficient.py
nataliyah123 Sep 4, 2020
79e155d
Update multilabel_confusion_matrix.py
nataliyah123 Sep 4, 2020
b9404dd
Update r_square.py
nataliyah123 Sep 4, 2020
1192360
Update matthews_correlation_coefficient.py
nataliyah123 Sep 4, 2020
83be56f
Update multilabel_confusion_matrix.py
nataliyah123 Sep 4, 2020
6d97289
Update r_square.py
nataliyah123 Sep 4, 2020
6441acd
Update r_square.py
nataliyah123 Sep 4, 2020
eae4f29
keras Api example
nataliyah123 Sep 5, 2020
cc0f689
Update cohens_kappa.py
nataliyah123 Sep 5, 2020
c137b16
Update r_square.py
nataliyah123 Sep 5, 2020
27e3147
Update r_square.py
nataliyah123 Sep 5, 2020
aa67440
Update matthews_correlation_coefficient.py
nataliyah123 Sep 5, 2020
91cdf73
uncommented update_state
nataliyah123 Sep 6, 2020
9fb5b53
requested_change
nataliyah123 Sep 6, 2020
04f68e6
Update cohens_kappa.py
nataliyah123 Sep 6, 2020
87d4711
Update r_square.py
nataliyah123 Sep 6, 2020
134f9ef
Update multilabel_confusion_matrix.py
nataliyah123 Sep 6, 2020
3424dc1
Update multilabel_confusion_matrix.py
nataliyah123 Sep 6, 2020
0d568af
Update matthews_correlation_coefficient.py
nataliyah123 Sep 6, 2020
db472cb
Update hamming.py
nataliyah123 Sep 6, 2020
61ccc42
Update geometric_mean.py
nataliyah123 Sep 6, 2020
20a74ff
Update cohens_kappa.py
nataliyah123 Sep 6, 2020
1240bd3
Update hamming.py
nataliyah123 Sep 6, 2020
facd2c9
Update multilabel_confusion_matrix.py
nataliyah123 Sep 6, 2020
82ac7ce
Update hamming.py
nataliyah123 Sep 6, 2020
d049d58
Add doctest section (#2151)
WindQAQ Sep 8, 2020
fc2c796
nbfmt tutorial notebooks (#2155)
lamberta Sep 9, 2020
fc50c34
Support fill_mode for transform (#2153)
WindQAQ Sep 10, 2020
3d37870
Speedup gaussian kernel generation (#2149)
WindQAQ Sep 10, 2020
41133a3
Correct a typo in average_optimizers_callback.ipynb (#2159)
anuragarnab Sep 10, 2020
5bdaf40
Avoid unnecessary reshapes for instance norm (#2158)
kaixih Sep 11, 2020
7f6bcf7
beam search decoding procedure added to seq2seq_nmt tutorial (#2140)
abhishek-niranjan Sep 11, 2020
e3e0853
Setup notebook testing (#2160)
WindQAQ Sep 11, 2020
4eeb2b2
Update hamming.py
nataliyah123 Sep 14, 2020
62fb9d5
y_true, y_pred are not accepted in hamming.py
nataliyah123 Sep 14, 2020
62e1eb8
Update hamming.py
nataliyah123 Sep 14, 2020
eb2ffb8
Update hamming.py
nataliyah123 Sep 14, 2020
58eae9f
assigned metric.update_Status to result
nataliyah123 Sep 14, 2020
a57a7f3
Update matthews_correlation_coefficient.py
nataliyah123 Sep 14, 2020
388e9e1
assigned m.update_status (yactual,ypred) to result
nataliyah123 Sep 14, 2020
8dbeaaa
Update r_square.py
nataliyah123 Sep 14, 2020
e818d2e
Update r_square.py
nataliyah123 Sep 14, 2020
07365ac
Update multilabel_confusion_matrix.py
nataliyah123 Sep 14, 2020
557cc3b
Update matthews_correlation_coefficient.py
nataliyah123 Sep 14, 2020
13466d7
Update geometric_mean.py
nataliyah123 Sep 14, 2020
1118061
Update cohens_kappa.py
nataliyah123 Sep 14, 2020
3897e2f
Discriminative Layer Training (#969)
hyang0129 Sep 14, 2020
816aa23
Update geometric_mean.py
nataliyah123 Sep 14, 2020
ba10725
Update hamming.py
nataliyah123 Sep 14, 2020
ea66760
Update cohens_kappa.py
nataliyah123 Sep 14, 2020
d99502f
Update matthews_correlation_coefficient.py
nataliyah123 Sep 14, 2020
27a975e
Update multilabel_confusion_matrix.py
nataliyah123 Sep 14, 2020
adc06a7
fixed typo in multioptimizer class name and added code owners (#2164)
hyang0129 Sep 14, 2020
4fc2ced
Update multilabel_confusion_matrix.py
nataliyah123 Sep 14, 2020
f6575a7
Update matthews_correlation_coefficient.py
nataliyah123 Sep 14, 2020
36cd439
Update hamming.py
nataliyah123 Sep 14, 2020
51f2b5f
Update hamming.py
nataliyah123 Sep 14, 2020
37f40a7
Update cohens_kappa.py
nataliyah123 Sep 14, 2020
84a3ce6
Update hamming.py
nataliyah123 Sep 14, 2020
84da148
Update cohens_kappa.py
nataliyah123 Sep 14, 2020
1b79cc4
Update hamming.py
nataliyah123 Sep 14, 2020
bcc75fa
Update multilabel_confusion_matrix.py
nataliyah123 Sep 14, 2020
e642583
Update cohens_kappa.py
nataliyah123 Sep 14, 2020
7b8c9bc
Update multilabel_confusion_matrix.py
nataliyah123 Sep 14, 2020
c06c27b
Update cohens_kappa.py
nataliyah123 Sep 14, 2020
dbd3261
Update multilabel_confusion_matrix.py
nataliyah123 Sep 14, 2020
2ddb74d
Update multilabel_confusion_matrix.py
nataliyah123 Sep 15, 2020
abe8561
unified diff
nataliyah123 Sep 15, 2020
cab0837
Update multilabel_confusion_matrix.py
nataliyah123 Sep 15, 2020
8320f16
Rnn testable doctests (#2147)
Harsh188 Sep 15, 2020
1c3c072
Added support for noisy dense layers. (#2099)
LeonShams Sep 15, 2020
dbcd5aa
Added stochastic depth layer (#2154)
MHStadler Sep 16, 2020
5fd46e9
fixed example
nataliyah123 Sep 17, 2020
e2006c3
Added filtered_input and constrained_decoding (#2166)
napsternxg Sep 17, 2020
13e40e6
Moved build_docs.py and BUILD into /tools/docs/ (#2167)
hp77-creator Sep 18, 2020
3aa7c61
added support for blankline
nataliyah123 Sep 20, 2020
1661c61
'space'
nataliyah123 Sep 20, 2020
ba99b55
update metrics cohen kappa
nataliyah123 Sep 2, 2020
6cc7a54
Update cohens_kappa.py
nataliyah123 Sep 2, 2020
1b1b602
Update cohens_kappa.py
nataliyah123 Sep 2, 2020
e549e9d
Update cohens_kappa.py
nataliyah123 Sep 2, 2020
82e26b1
Update hamming.py
nataliyah123 Sep 2, 2020
6d58948
Update cohens_kappa.py
nataliyah123 Sep 2, 2020
5689900
Update matthews_correlation_coefficient.py
nataliyah123 Sep 2, 2020
6f7cc89
Update multilabel_confusion_matrix.py
nataliyah123 Sep 2, 2020
b4f2c4c
Update r_square.py
nataliyah123 Sep 2, 2020
c5328d0
Update r_square.py
nataliyah123 Sep 2, 2020
b8ebbf8
Update cohens_kappa.py
nataliyah123 Sep 2, 2020
3c2d1a4
Update multilabel_confusion_matrix.py
nataliyah123 Sep 2, 2020
05ce484
Update matthews_correlation_coefficient.py
nataliyah123 Sep 2, 2020
9ce7078
Update hamming.py
nataliyah123 Sep 4, 2020
78fdfec
Update hamming.py
nataliyah123 Sep 4, 2020
4e2ca52
Update r_square.py
nataliyah123 Sep 4, 2020
738886a
Update matthews_correlation_coefficient.py
nataliyah123 Sep 4, 2020
37e8220
Update multilabel_confusion_matrix.py
nataliyah123 Sep 4, 2020
2773675
Update r_square.py
nataliyah123 Sep 4, 2020
30f01a7
Update matthews_correlation_coefficient.py
nataliyah123 Sep 4, 2020
af599ef
Update multilabel_confusion_matrix.py
nataliyah123 Sep 4, 2020
199ee0f
Update r_square.py
nataliyah123 Sep 4, 2020
120222f
Update r_square.py
nataliyah123 Sep 4, 2020
44fe8f6
keras Api example
nataliyah123 Sep 5, 2020
1230dcf
Update cohens_kappa.py
nataliyah123 Sep 5, 2020
3984ece
Update r_square.py
nataliyah123 Sep 5, 2020
a0718ce
Update r_square.py
nataliyah123 Sep 5, 2020
20d26fe
Update matthews_correlation_coefficient.py
nataliyah123 Sep 5, 2020
50a4ef1
uncommented update_state
nataliyah123 Sep 6, 2020
ae251ac
requested_change
nataliyah123 Sep 6, 2020
e8df84f
Update cohens_kappa.py
nataliyah123 Sep 6, 2020
d1acae0
Update r_square.py
nataliyah123 Sep 6, 2020
73263d6
Update multilabel_confusion_matrix.py
nataliyah123 Sep 6, 2020
e607e61
Update multilabel_confusion_matrix.py
nataliyah123 Sep 6, 2020
5b6f6e2
Update matthews_correlation_coefficient.py
nataliyah123 Sep 6, 2020
97bd120
Update hamming.py
nataliyah123 Sep 6, 2020
687c0b7
Update geometric_mean.py
nataliyah123 Sep 6, 2020
e1ec9c7
Update cohens_kappa.py
nataliyah123 Sep 6, 2020
0250834
Update hamming.py
nataliyah123 Sep 6, 2020
cd166b4
Update multilabel_confusion_matrix.py
nataliyah123 Sep 6, 2020
27d58b0
Update hamming.py
nataliyah123 Sep 6, 2020
3c266b0
Update hamming.py
nataliyah123 Sep 14, 2020
edc9d2f
y_true, y_pred are not accepted in hamming.py
nataliyah123 Sep 14, 2020
dc27baf
Update hamming.py
nataliyah123 Sep 14, 2020
fea2499
Update hamming.py
nataliyah123 Sep 14, 2020
e4cf1aa
assigned metric.update_Status to result
nataliyah123 Sep 14, 2020
2589f43
Update matthews_correlation_coefficient.py
nataliyah123 Sep 14, 2020
3162aa9
assigned m.update_status (yactual,ypred) to result
nataliyah123 Sep 14, 2020
36410b8
Update r_square.py
nataliyah123 Sep 14, 2020
0097957
Update r_square.py
nataliyah123 Sep 14, 2020
430894e
Update multilabel_confusion_matrix.py
nataliyah123 Sep 14, 2020
64d28c8
Update matthews_correlation_coefficient.py
nataliyah123 Sep 14, 2020
ca7ddc8
Update geometric_mean.py
nataliyah123 Sep 14, 2020
9a86082
Update cohens_kappa.py
nataliyah123 Sep 14, 2020
53017f1
Update geometric_mean.py
nataliyah123 Sep 14, 2020
e5629b1
Update hamming.py
nataliyah123 Sep 14, 2020
adeda64
Update cohens_kappa.py
nataliyah123 Sep 14, 2020
753e36e
Update matthews_correlation_coefficient.py
nataliyah123 Sep 14, 2020
4a936e2
Update multilabel_confusion_matrix.py
nataliyah123 Sep 14, 2020
63d7807
Update multilabel_confusion_matrix.py
nataliyah123 Sep 14, 2020
86213f8
Update matthews_correlation_coefficient.py
nataliyah123 Sep 14, 2020
d9ff82e
Update hamming.py
nataliyah123 Sep 14, 2020
ed0dc7e
Update hamming.py
nataliyah123 Sep 14, 2020
bfa3613
Update cohens_kappa.py
nataliyah123 Sep 14, 2020
dd00321
Update hamming.py
nataliyah123 Sep 14, 2020
589fbed
Update cohens_kappa.py
nataliyah123 Sep 14, 2020
5b7a915
Update hamming.py
nataliyah123 Sep 14, 2020
2342ae5
Update multilabel_confusion_matrix.py
nataliyah123 Sep 14, 2020
37c72ba
Update cohens_kappa.py
nataliyah123 Sep 14, 2020
0a9a261
Update multilabel_confusion_matrix.py
nataliyah123 Sep 14, 2020
6a1fb84
Update cohens_kappa.py
nataliyah123 Sep 14, 2020
d3ed8ed
Update multilabel_confusion_matrix.py
nataliyah123 Sep 14, 2020
c7d881b
Update multilabel_confusion_matrix.py
nataliyah123 Sep 15, 2020
37bd5ed
unified diff
nataliyah123 Sep 15, 2020
dfc6dc0
Update multilabel_confusion_matrix.py
nataliyah123 Sep 15, 2020
19c0a6c
fixed example
nataliyah123 Sep 17, 2020
6c0e971
added support for blankline
nataliyah123 Sep 20, 2020
ce34419
'space'
nataliyah123 Sep 20, 2020
f241471
Merge branch '#2066-doc-update-metrics' of https://github.com/nataliy…
nataliyah123 Sep 20, 2020
9aa2598
update metrics cohen kappa
nataliyah123 Sep 2, 2020
46c44c0
Update cohens_kappa.py
nataliyah123 Sep 2, 2020
867fa7f
Update cohens_kappa.py
nataliyah123 Sep 2, 2020
7c3557e
Update cohens_kappa.py
nataliyah123 Sep 2, 2020
22516db
Update hamming.py
nataliyah123 Sep 2, 2020
d1cabfb
Update cohens_kappa.py
nataliyah123 Sep 2, 2020
e51d182
Update matthews_correlation_coefficient.py
nataliyah123 Sep 2, 2020
7daf2f2
Update multilabel_confusion_matrix.py
nataliyah123 Sep 2, 2020
591fae3
Update r_square.py
nataliyah123 Sep 2, 2020
da70765
Update r_square.py
nataliyah123 Sep 2, 2020
127bd4e
Update cohens_kappa.py
nataliyah123 Sep 2, 2020
2984c08
Update multilabel_confusion_matrix.py
nataliyah123 Sep 2, 2020
558717b
Update matthews_correlation_coefficient.py
nataliyah123 Sep 2, 2020
6888bd2
Update hamming.py
nataliyah123 Sep 4, 2020
f36b72e
Update hamming.py
nataliyah123 Sep 4, 2020
c62394a
Update r_square.py
nataliyah123 Sep 4, 2020
cd3b849
Update matthews_correlation_coefficient.py
nataliyah123 Sep 4, 2020
620ddc2
Update multilabel_confusion_matrix.py
nataliyah123 Sep 4, 2020
8ad555a
Update r_square.py
nataliyah123 Sep 4, 2020
d7b0c6b
Update matthews_correlation_coefficient.py
nataliyah123 Sep 4, 2020
09f6912
Update multilabel_confusion_matrix.py
nataliyah123 Sep 4, 2020
f3419c2
Update r_square.py
nataliyah123 Sep 4, 2020
8cfed76
Update r_square.py
nataliyah123 Sep 4, 2020
5a832eb
keras Api example
nataliyah123 Sep 5, 2020
552503a
Update cohens_kappa.py
nataliyah123 Sep 5, 2020
1e4bf35
Update r_square.py
nataliyah123 Sep 5, 2020
21a6a23
Update r_square.py
nataliyah123 Sep 5, 2020
0b8e732
Update matthews_correlation_coefficient.py
nataliyah123 Sep 5, 2020
080ae65
uncommented update_state
nataliyah123 Sep 6, 2020
04ed329
requested_change
nataliyah123 Sep 6, 2020
5b5da62
Update cohens_kappa.py
nataliyah123 Sep 6, 2020
480c103
Update r_square.py
nataliyah123 Sep 6, 2020
12cd059
Update multilabel_confusion_matrix.py
nataliyah123 Sep 6, 2020
f3f920e
Update multilabel_confusion_matrix.py
nataliyah123 Sep 6, 2020
cf1c24b
Update matthews_correlation_coefficient.py
nataliyah123 Sep 6, 2020
3349e87
Update hamming.py
nataliyah123 Sep 6, 2020
c4a0d61
Update geometric_mean.py
nataliyah123 Sep 6, 2020
ad3e744
Update cohens_kappa.py
nataliyah123 Sep 6, 2020
1e784d2
Update hamming.py
nataliyah123 Sep 6, 2020
4684cbe
Update multilabel_confusion_matrix.py
nataliyah123 Sep 6, 2020
9aa6a97
Update hamming.py
nataliyah123 Sep 6, 2020
b9a2057
Update hamming.py
nataliyah123 Sep 14, 2020
6b767ea
y_true, y_pred are not accepted in hamming.py
nataliyah123 Sep 14, 2020
1d74c2e
Update hamming.py
nataliyah123 Sep 14, 2020
45145cf
Update hamming.py
nataliyah123 Sep 14, 2020
09c6fb8
assigned metric.update_Status to result
nataliyah123 Sep 14, 2020
e49474e
Update matthews_correlation_coefficient.py
nataliyah123 Sep 14, 2020
4cd4ae6
assigned m.update_status (yactual,ypred) to result
nataliyah123 Sep 14, 2020
f29455b
Update r_square.py
nataliyah123 Sep 14, 2020
095e814
Update r_square.py
nataliyah123 Sep 14, 2020
8cef4bb
Update multilabel_confusion_matrix.py
nataliyah123 Sep 14, 2020
ee80f36
Update matthews_correlation_coefficient.py
nataliyah123 Sep 14, 2020
4f37fda
Update geometric_mean.py
nataliyah123 Sep 14, 2020
31c8742
Update cohens_kappa.py
nataliyah123 Sep 14, 2020
83660c8
Update geometric_mean.py
nataliyah123 Sep 14, 2020
4e83541
Update hamming.py
nataliyah123 Sep 14, 2020
1b961ed
Update cohens_kappa.py
nataliyah123 Sep 14, 2020
6957efb
Update matthews_correlation_coefficient.py
nataliyah123 Sep 14, 2020
058cea4
Update multilabel_confusion_matrix.py
nataliyah123 Sep 14, 2020
a3cf087
Update multilabel_confusion_matrix.py
nataliyah123 Sep 14, 2020
8d57deb
Update matthews_correlation_coefficient.py
nataliyah123 Sep 14, 2020
48d4516
Update hamming.py
nataliyah123 Sep 14, 2020
c774e0f
Update hamming.py
nataliyah123 Sep 14, 2020
5540c9a
Update cohens_kappa.py
nataliyah123 Sep 14, 2020
987b2b6
Update hamming.py
nataliyah123 Sep 14, 2020
a4b1f45
Update cohens_kappa.py
nataliyah123 Sep 14, 2020
4135dcb
Update hamming.py
nataliyah123 Sep 14, 2020
c22457a
Update multilabel_confusion_matrix.py
nataliyah123 Sep 14, 2020
7bca624
Update cohens_kappa.py
nataliyah123 Sep 14, 2020
8dab2de
Update multilabel_confusion_matrix.py
nataliyah123 Sep 14, 2020
193d93f
Update cohens_kappa.py
nataliyah123 Sep 14, 2020
3979510
Update multilabel_confusion_matrix.py
nataliyah123 Sep 14, 2020
4e1ec0d
Update multilabel_confusion_matrix.py
nataliyah123 Sep 15, 2020
857a2b9
unified diff
nataliyah123 Sep 15, 2020
109f211
Update multilabel_confusion_matrix.py
nataliyah123 Sep 15, 2020
7ebb741
fixed example
nataliyah123 Sep 17, 2020
3f1a30a
added support for blankline
nataliyah123 Sep 20, 2020
568f75c
'space'
nataliyah123 Sep 20, 2020
eaf045a
update metrics cohen kappa
nataliyah123 Sep 2, 2020
6b567f3
Update hamming.py
nataliyah123 Sep 2, 2020
ac6b80b
Update multilabel_confusion_matrix.py
nataliyah123 Sep 2, 2020
f0b20ef
Update geometric_mean.py
nataliyah123 Sep 14, 2020
a43194b
Update geometric_mean.py
nataliyah123 Sep 14, 2020
796d4cb
added support for blankline
nataliyah123 Sep 20, 2020
4a0edb4
'space'
nataliyah123 Sep 20, 2020
e7c574c
r_square file
nataliyah123 Sep 21, 2020
7d85e4f
all
nataliyah123 Sep 21, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.1.0
6 changes: 6 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@
/tensorflow_addons/layers/tests/esn_test.py @pedrolarben
/tensorflow_addons/layers/snake.py @failure-to-thrive
/tensorflow_addons/layers/tests/snake_test.py @failure-to-thrive
/tensorflow_addons/layers/stochastic_depth.py @mhstadler @windqaq
/tensorflow_addons/layers/tests/stochastic_depth_test.py @mhstadler @windqaq
/tensorflow_addons/layers/noisy_dense.py @leonshams
/tensorflow_addons/layers/tests/noisy_dense_test.py @leonshams

/tensorflow_addons/losses/contrastive.py @windqaq
/tensorflow_addons/losses/tests/contrastive_test.py @windqaq
Expand Down Expand Up @@ -146,6 +150,8 @@
/tensorflow_addons/optimizers/tests/conditional_gradient_test.py @pkan2 @lokhande-vishnu
/tensorflow_addons/optimizers/cyclical_learning_rate.py @raphaelmeudec
/tensorflow_addons/optimizers/tests/cyclical_learning_rate_test.py @raphaelmeudec
/tensorflow_addons/optimizers/discriminative_layer_training.py @hyang0129
/tensorflow_addons/optimizers/tests/discriminative_layer_training_test.py @hyang0129
/tensorflow_addons/optimizers/lamb.py @junjiek
/tensorflow_addons/optimizers/tests/lamb_test.py @junjiek
/tensorflow_addons/optimizers/lazy_adam.py @ssaishruthi
Expand Down
32 changes: 29 additions & 3 deletions .github/workflows/ci_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ on:
- master
- r*

env:
BAZEL_VERSION: 3.1.0

jobs:
flake8-test:
name: Flake8
Expand Down Expand Up @@ -98,3 +95,32 @@ jobs:
- run: pip install pygithub click
- name: Check that the CODEOWNERS is valid
run: python .github/workflows/notify_codeowners.py .github/CODEOWNERS
nbfmt:
name: Notebook format
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v1
- uses: actions/checkout@v2
- name: Install tensorflow-docs
run: python3 -m pip install -U git+https://github.com/tensorflow/docs
- name: Check notebook formatting
run: |
# Run on all notebooks to prevent upstream change.
echo "Check formatting with nbfmt:"
python3 -m tensorflow_docs.tools.nbfmt --test \
$(find docs/tutorials/ -type f -name *.ipynb)
nblint:
name: Notebook lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v1
- uses: actions/checkout@v2
- name: Install tensorflow-docs
run: python3 -m pip install -U git+https://github.com/tensorflow/docs
- name: Lint notebooks
run: |
# Run on all notebooks to prevent upstream change.
echo "Lint check with nblint:"
python3 -m tensorflow_docs.tools.nblint \
--arg=repo:tensorflow/addons \
$(find docs/tutorials/ -type f -name *.ipynb ! -path "docs/tutorials/_template.ipynb")
9 changes: 2 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ on:
- r*

env:
BAZEL_VERSION: '3.1.0'
MIN_PY_VERSION: '3.5'
MAX_PY_VERSION: '3.8'

Expand All @@ -31,7 +30,7 @@ jobs:
- name: Build wheels
run: |
pip install --default-timeout=1000 -r tools/install_deps/pytest.txt -r tools/install_deps/tensorflow-cpu.txt -r requirements.txt
bash tools/install_deps/bazel_linux.sh
bash tools/install_deps/install_bazelisk.sh ./
python configure.py
bazel test -c opt -k --test_timeout 300,450,1200,3600 --test_output=errors //tensorflow_addons/...
release-wheel:
Expand Down Expand Up @@ -60,11 +59,7 @@ jobs:
- name: Setup Bazel
# Ubuntu bazel is run inside of the docker image
if: matrix.os != 'ubuntu-18.04'
# MacOS VMs share IP addr on GH actions. This bazel installation authenticates token to prevent api rate limiting.
uses: jwlawson/actions-setup-bazel@784af34 # Version 1.1
with:
bazel-version: ${{ env.BAZEL_VERSION}}
github-api-token: ${{ secrets.GITHUB_TOKEN }}
run: bash tools/install_deps/install_bazelisk.sh ./
- name: Build wheels
env:
OS: ${{ runner.os }}
Expand Down
18 changes: 18 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,24 @@ bazel test -c opt -k \
//tensorflow_addons/...
```

#### Testing docstrings

We use [DocTest](https://docs.python.org/3/library/doctest.html) to test code snippets
in Python docstrings. The snippet must be executable Python code.
To enable testing, prepend the line with `>>>` (three left-angle brackets).
Available namespace include `np` for numpy, `tf` for TensorFlow, and `tfa` for TensorFlow Addons.
See [docs_ref](https://www.tensorflow.org/community/contribute/docs_ref) for more details.

To test docstrings locally, run either
```bash
bash tools/run_cpu_tests.sh
```
on all files, or
```bash
pytest -v -n auto --durations=25 --doctest-modules /path/to/pyfile
```
on specific files.

## About type hints

Ideally, we would like all the functions and classes constructors exposed in
Expand Down
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ run the following:
```
pip install tensorflow-addons
```

To ensure you have a version of TensorFlow that is compatible with TensorFlow Addons,
you can specify the `tensorflow` extra requirement during install:

```
pip install tensorflow-addons[tensorflow]
```

Similar extras exist for the `tensorflow-gpu` and `tensorflow-cpu` packages.


To use TensorFlow Addons:
Expand All @@ -72,7 +81,7 @@ what it was tested against.
| TensorFlow Addons | TensorFlow | Python |
|:----------------------- |:---|:---------- |
| tfa-nightly | 2.2, 2.3 | 3.5, 3.6, 3.7, 3.8 |
| tensorflow-addons-0.11.1 | 2.2, 2.3 |3.5, 3.6, 3.7, 3.8 |
| tensorflow-addons-0.11.2 | 2.2, 2.3 |3.5, 3.6, 3.7, 3.8 |
| tensorflow-addons-0.10.0 | 2.2 |3.5, 3.6, 3.7, 3.8 |
| tensorflow-addons-0.9.1 | 2.1, 2.2 |3.5, 3.6, 3.7 |
| tensorflow-addons-0.8.3 | 2.1 |3.5, 3.6, 3.7 |
Expand All @@ -98,7 +107,7 @@ is compiled differently. A typical example of this would be `conda`-installed Te
| TensorFlow Addons | TensorFlow | Compiler | cuDNN | CUDA |
|:----------------------- |:---- |:---------|:---------|:---------|
| tfa-nightly | 2.3 | GCC 7.3.1 | 7.6 | 10.1 |
| tensorflow-addons-0.11.1 | 2.3 | GCC 7.3.1 | 7.6 | 10.1 |
| tensorflow-addons-0.11.2 | 2.3 | GCC 7.3.1 | 7.6 | 10.1 |
| tensorflow-addons-0.10.0 | 2.2 | GCC 7.3.1 | 7.6 | 10.1 |
| tensorflow-addons-0.9.1 | 2.1 | GCC 7.3.1 | 7.6 | 10.1 |
| tensorflow-addons-0.8.3 | 2.1 | GCC 7.3.1 | 7.6 | 10.1 |
Expand Down
8 changes: 6 additions & 2 deletions build_deps/toolchains/gpu/find_cuda_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,16 @@ def get_nvcc_version(path):

nvcc_name = "nvcc.exe" if _is_windows() else "nvcc"
nvcc_path, nvcc_version = _find_versioned_file(
base_paths, ["", "bin",], nvcc_name, cuda_version, get_nvcc_version
base_paths,
["", "bin"],
nvcc_name,
cuda_version,
get_nvcc_version,
)

nvvm_path = _find_file(
base_paths,
["nvvm/libdevice", "share/cuda", "lib/nvidia-cuda-toolkit/libdevice",],
["nvvm/libdevice", "share/cuda", "lib/nvidia-cuda-toolkit/libdevice"],
"libdevice*.10.bc",
)

Expand Down
26 changes: 12 additions & 14 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,21 @@ Any markdown or notebook files in this directory will be published to tensorflow
`tutorials/_toc.yaml` controls the left-nav on the tutorials tab. Make sure to keep that file up to date.
Notify the tensorflow/docs team if you need to major changes.

The preferred formatting for TensorFlow notebooks is to use the [tensorflow/docs](https://github.com/tensorflow/docs) [`nbfmt` tool](https://github.com/tensorflow/docs/tree/master/tools/tensorflow_docs/tools). If modifying a tutorial gives you
an unreadable diff use the following commands to re-apply the standard formatting:

```
pip install git+https://github.com/tensorflow/docs
python -m tensorflow_docs.tools.nbfmt {path to notebook file or directory}
```






## 2. Generated API docs

[tensorflow.org/addons/api_docs/python/tfa](https://tensorflow.org/addons/api_docs/python/tfa)

`build_docs.py` controls executed this docs generation. To test-run it:

```bash
# Install dependencies:
pip install -r tools/install_deps/doc_requirements.txt

# Build tool:
bazel build docs:build_docs

# Generate API doc:
# Use current branch
bazel-bin/docs/build_docs --git_branch=$(git rev-parse --abbrev-ref HEAD)
# or specified explicitly
bazel-bin/docs/build_docs --git_branch=master --output_dir=/tmp/tfa_api
```
Loading