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

[BUG] AEON does not work with tensorflow 2.13 #1477

Open
rruizdeaustri opened this issue Apr 26, 2024 · 3 comments
Open

[BUG] AEON does not work with tensorflow 2.13 #1477

rruizdeaustri opened this issue Apr 26, 2024 · 3 comments
Labels
bug Something isn't working deep learning Deep learning related

Comments

@rruizdeaustri
Copy link

rruizdeaustri commented Apr 26, 2024

Describe the bug

Dear authors,
I can't run the LITE model in aeon with tensorflow 2.13

Thanks !

Steps/Code to reproduce the bug

from aeon.datasets import load_classification
from aeon.classification.deep_learning import LITETimeClassifier

xtrain, ytrain = load_classification(name="Coffee", split="train")
xtest, ytest = load_classification(name="Coffee", split="test")


clf = LITETimeClassifier(n_classifiers=5)

clf.fit(xtrain, ytrain)

print(clf.score(xtest, ytest))

Expected results

I don't know since it does not work.

Actual results

File "main_aeon.py", line 10, in <module>
    clf.fit(xtrain, ytrain)
  File "/lhome/ext/ifca124/ifca1241/software/anaconda3/envs/tensorflow/lib/python3.8/site-packages/aeon/classification/base.py", line 129, in fit
    self._fit(X, y)
  File "/lhome/ext/ifca124/ifca1241/software/anaconda3/envs/tensorflow/lib/python3.8/site-packages/aeon/classification/deep_learning/_lite_time.py", line 200, in _fit
    cls.fit(X, y)
  File "/lhome/ext/ifca124/ifca1241/software/anaconda3/envs/tensorflow/lib/python3.8/site-packages/aeon/classification/base.py", line 129, in fit
    self._fit(X, y)
  File "/lhome/ext/ifca124/ifca1241/software/anaconda3/envs/tensorflow/lib/python3.8/site-packages/aeon/classification/deep_learning/_lite_time.py", line 520, in _fit
    self.history = self.training_model_.fit(
  File "/lhome/ext/ifca124/ifca1241/software/anaconda3/envs/tensorflow/lib/python3.8/site-packages/keras/src/utils/traceback_utils.py", line 70, in error_handler
    raise e.with_traceback(filtered_tb) from None
  File "/lhome/ext/ifca124/ifca1241/software/anaconda3/envs/tensorflow/lib/python3.8/site-packages/keras/src/saving/saving_api.py", line 142, in save_model
    raise ValueError(
ValueError: The following argument(s) are not supported with the native Keras format: ['options']

Versions

No response

@rruizdeaustri rruizdeaustri added the bug Something isn't working label Apr 26, 2024
@baraline
Copy link
Contributor

baraline commented Apr 27, 2024

Hi, thanks for raising the issue. Could you please provide the version of the other packages in your environment by pasting the output of the following function in a comment or in your answer ?

from aeon import show_versions
show_versions()

This would allow us to better diagnose your issue.

@rruizdeaustri
Copy link
Author

rruizdeaustri commented Apr 27, 2024 via email

@hadifawaz1999
Copy link
Contributor

hello, it seems that its a common tensorflow issue with older versions aka apparently some issues with saving format that collapsed errors about an options parameter inside ModelCheckpoint that we use by default in aeon deep learners, is it possible that you upgrade to latest tensorflow versions ? or maybe at least tf 2.15 and try it out ?

@hadifawaz1999 hadifawaz1999 added the deep learning Deep learning related label Apr 27, 2024
@MatthewMiddlehurst MatthewMiddlehurst changed the title AEON does not work with tensorflow 2.13 [BUG] AEON does not work with tensorflow 2.13 May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working deep learning Deep learning related
Projects
None yet
Development

No branches or pull requests

3 participants