-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[ENH] Add TapNet DL Model for Classification #3386
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
Conversation
Apart from the ongoing discussion on saving/loading of DL models (issue #3022). The reason current PR fails to even save from I could subclass a layer instead of using a @fkiraly If this seems like a reasonable change, let me know so I could start working on it. |
Currently, the two failing tests are being skipped for all DL models until a solution for the save/load issue is found. You can add the network to the skip list in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick question: how common is it to install keras-self-attention
if you already have tensorflow
or keras
? Should this be a core dl dependency or just a soft dependency?
I'm aware there are other networks that make use of |
ok, let's make it a soft dependency then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Almost ready to go.
I think we need to:
- add a check for the soft dependency at the top of the module (warning level)
- add another check in the init (error level)
Have a look at MatrixProfileTransformer
as an example.
I see I was missing a warning-level soft dependency check for the network. I've added that, I think it should be good now. On a side note |
Yes, it's done by the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good now, thanks!
Reference Issues/PRs
Fixes #3372
What does this implement/fix? Explain your changes.
Migrate TapNet Network and Classifier from sktime-dl into sktime. Changes are kept to a minimum. Remove a few commented blocks of code. Ensure the addition of soft-dependency is handled appropriately.
Does your contribution introduce a new dependency? If yes, which one?
Yes, introduces
keras-self-attention
as a soft dependency.What should a reviewer concentrate their feedback on?
tapnet
networktapnet
classifiercheck_estimator()
fortapnet
network.check_estimator()
fortapnet
classifier. (currently failing)Any other comments?
Currently, working on rectifying the problem and will ask to review the code when it is working locally.
PR checklist
For all contributions
For new estimators