Skip to content
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

#2066-doc-update-metrics-latest #2171

Merged

Conversation

nataliyah123
Copy link
Contributor

Fixes part of #2066

@bot-of-gabrieldemarmiesse

@SSaishruthi @marload @autoih @AakashKumarNain

You are owners of some files modified in this pull request.
Would you kindly review the changes whenever you have the time to?
Thank you very much.

@nataliyah123 nataliyah123 changed the title all_done #2066-doc-update-metrics-latest Sep 21, 2020
Copy link
Member

@WindQAQ WindQAQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution! Some requests:

  1. Can we canonicalize naming convention? Like
>>> y_true = np.foo(xxx)
>>> y_pred = np.foo(xxx)
>>> metric = tfa.metrics.bar(yyy)
>>> metric.update_state(y_true, y_pred)
>>> result = metric.result()
>>> result.numpy()
  1. Some comments are not so meaningful in testable docstring. Like # metric name: When users see the API page, they know this page is that metric. Therefore, we can also clean up this kind of comments in docstring in this PR!

tensorflow_addons/metrics/cohens_kappa.py Outdated Show resolved Hide resolved
tensorflow_addons/metrics/cohens_kappa.py Outdated Show resolved Hide resolved
tensorflow_addons/metrics/hamming.py Outdated Show resolved Hide resolved
tensorflow_addons/metrics/hamming.py Outdated Show resolved Hide resolved
tensorflow_addons/metrics/hamming.py Outdated Show resolved Hide resolved
tensorflow_addons/metrics/multilabel_confusion_matrix.py Outdated Show resolved Hide resolved
tensorflow_addons/metrics/r_square.py Outdated Show resolved Hide resolved
tensorflow_addons/metrics/cohens_kappa.py Show resolved Hide resolved
tensorflow_addons/metrics/hamming.py Outdated Show resolved Hide resolved
@WindQAQ WindQAQ mentioned this pull request Sep 22, 2020
@WindQAQ WindQAQ merged commit 710903f into tensorflow:master Sep 22, 2020
jrruijli pushed a commit to jrruijli/addons that referenced this pull request Dec 23, 2020
* all_done

* cohen_kapa_space

* requested changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants