-
Notifications
You must be signed in to change notification settings - Fork 257
[ENH] extend dl classifiers/regressors to use full keras compile/fit API #3199
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
base: main
Are you sure you want to change the base?
[ENH] extend dl classifiers/regressors to use full keras compile/fit API #3199
Conversation
feat: add ability to use full compile and fit APIs (resnet classifier)
Thank you for contributing to
|
|
Hi @jsquaredosquared, great work on this! I checked the CI logs, and the failures are due to two main issues:
And I think instead of fixing this in every single subclass (which creates a lot of code duplication), would it be a good idea in moving the logic into a helper method in Proposed changes for
|
|
Thanks for taking a look. There is a lot of duplication in the model building and fitting. Perhaps a refactor is in order. For now I will just copy and paste because a full-on refactor seems daunting and might need a PR of its own 🥲 . |
feat: add ability to use full compile and fit APIs
Reference Issues/PRs
Partially addresses this issue.
What does this implement/fix? Explain your changes.
For purposes like using validation, it is helpful to be able to use the full Keras compile and fit APIs from the deep learning estimators in Aeon.
This pull requests modifies the constructors and invocations to the compile and fit methods so that all the arguments from the Keras API can be used.
Does your contribution introduce a new dependency? If yes, which one?
No new dependency.
Any other comments?
Extending this to the clusterers and forecasters would require some additional work.
PR checklist
For all contributions
For new estimators and functions
__maintainer__at the top of relevant files and want to be contacted regarding its maintenance. Unmaintained files may be removed. This is for the full file, and you should not add yourself if you are just making minor changes or do not want to help maintain its contents.For developers with write access