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

[WIP] Adding TCN Layers to TFA Layers #672

Closed
wants to merge 20 commits into from
Closed

[WIP] Adding TCN Layers to TFA Layers #672

wants to merge 20 commits into from

Conversation

shun-lin
Copy link
Contributor

@shun-lin shun-lin commented Nov 5, 2019

[Not Ready for Merge]
This PR adds TCN layer as well as the Residual Block layer to TFA layers.

TODO(shunlin):
Clean up code.
Add more comments / documentations.
Write unit tests.
Make a Colab tutorial.

Associated Issues:
#661
philipperemy/keras-tcn#73

Source Implementations:
https://github.com/philipperemy/keras-tcn (In Pure Keras)
https://github.com/locuslab/TCN (In Pytorch)

Relevant Paper:
https://arxiv.org/pdf/1803.01271.pdf

from tensorflow_addons.utils import keras_utils


@keras_utils.register_keras_custom_object
Copy link
Member

Choose a reason for hiding this comment

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

Could you update this to use the public Keras API:
#669

Copy link
Contributor Author

Choose a reason for hiding this comment

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

got it, will update, thanks @seanpmorgan :)

rahulunair and others added 8 commits November 6, 2019 23:55
* CLN: Refactor f_scores and f_test

* Add `threshold` param to f-scores
* Tests now compare with sklearn
* Add sklearn to requirements

* Format files

* Add F1 score test

* Register FBetaScore and F1Score as Keras custom objects
* Update readme to separate both metrics

* Add test for F1-score get_config

* FIX: Use sk_score for true value

* Remove sklearn from f_test

Resort to using hard coded test cases
rather than comparing with sklearn

* Remove unused import

* Rename test_keras_model -> _get_model
* FIX: Internally cast to required DType
* Add pylint disable for unscriptable-object bug
* Remove test skips since upstream fix

* Use public keras object registration

* Merge master and update registration

* Fix tf import

* Update READMEs

* F scores keras registration

* Lint
* fix overflow of int32
@googlebot
Copy link

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: no and removed cla: yes labels Nov 7, 2019
@shun-lin
Copy link
Contributor Author

shun-lin commented Nov 7, 2019

closing this PR because I messed up fetching in changes from upstream master again, will open another PR haha.

@shun-lin shun-lin closed this Nov 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants