-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[ENH] Add LSTM-FCN estimator from sktime-dl #3714
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
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Thanks! Your linting is failing, kindly check code formatting, here is the guide: |
Hey @fkiraly, thanks for the initial review! |
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.
Looks overall reasonable!
The remaining issue is to isolate the soft dependency tensorflow. Please use the tag as stated above (in both classes), and all should be fine!
All done, let me know if the suggested author attribution works for you |
I replaced the actual grid search in the example notebook with a comment about grid search compatibility to speed up things |
Hey @fkiraly, I added Jack and myself to the contributors file. Let me know if there is anything else I should fix up :) |
I moved the |
Hey @fkiraly, I merged the latest changes from upstream to resolve the merge conflict in |
63ccbe6
to
60f732f
Compare
Hey @fkiraly looks like there is a test failing, although it seems unrelated to any of my changes. Do you have an idea whats going on here?
|
I pulled in your changes for #3817, that should hopefully do it now 🤞 |
Can we do another test run @fkiraly? |
Of course! Sorry for being silent on this. Thanks for your contribution! |
All good, no need to apologize :) I see there are still some OS + Python version combinations causing errors in the test matrix, I'll try to figure out what's wrong there |
48c4e25
to
7b40d21
Compare
ecdd58f
to
df79e97
Compare
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.
The tests failing are the ones commonly failing due to incomplete random seed setting in keras
. This is a known issue and will be dealt with for all keras
estimators simultaneously, if it will be dealt with.
So, you should add the tests as exceptions to tests._config
, similar to the other keras
based estimators.
Good stuff, thanks for the hint 👍 |
Shall we give the tests another go @fkiraly ? :) |
Looks like a compiler error occured during install of dependencies on macOS, looks to me like it might have just been a fluke. Do you agree @fkiraly? Maybe we can just re-run the test suite, everything else looks fine now |
Hey @fkiraly, could you please authorize another run of the test suite? Thank you! |
oops, sorry - did miss this one. Of course, let's see |
What does this implement/fix? Explain your changes.
Add LSTM-FCN estimator from sktime-dl
I am using sktime & sktime-dl in university as part of a course project this semester. I would love to use the LSTM-FCN model from sktime-dl in my project, but since sktime-dl comes with some pretty old (and hard-pinned) dependencies, I decided to try and port the model over to sktime.
I made some very small changes to parameter names to stay in line with the existing models, such as the CNNClassifier (e.g changed
nb_epochs
ton_epochs
).Added jupyter notebook
02b_classification_multivariate_lstmfcn.ipynb
with a small demo based on the CNN example.Ran
pytest -k LSTMFCNClassifier
without errors.Does your contribution introduce a new dependency? If yes, which one?
No
What should a reviewer concentrate their feedback on?
Please focus on everything, except the network architecture itself. I did not implement it, all credit goes to Jack Russon from sktime-dl. Source.
I am happy to incorporate any other feedback you might have!
PR checklist
For all contributions
For new estimators