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

[MNT] Remove Reshape layer from Deep Learning Clusterers #1794

Open
aadya940 opened this issue Jul 13, 2024 · 15 comments
Open

[MNT] Remove Reshape layer from Deep Learning Clusterers #1794

aadya940 opened this issue Jul 13, 2024 · 15 comments
Labels
clustering Clustering package good first issue Good for newcomers

Comments

@aadya940
Copy link
Contributor

aadya940 commented Jul 13, 2024

Describe the issue

The tf.keras.layers.Reshape was introduced in clustering/deep_learnin to make the input shape of the encoder equal to the output shape of the decoder which is already being tested in test_all_networks.py. So, basically it is unnecessary at the moment.

Suggest a potential alternative/fix

Remove it.

@TonyBagnall TonyBagnall added the clustering Clustering package label Jul 14, 2024
@TonyBagnall
Copy link
Contributor

maybe add some context as to why?

@hadifawaz1999 hadifawaz1999 added the good first issue Good for newcomers label Jul 19, 2024
@av6-github
Copy link

@TonyBagnall @aadya940 Would you be able to provide more context on this?
@aadya940 Is it open for me to solve?

@aadya940
Copy link
Contributor Author

@av6-github Yes, go ahead :)
Basically, you have to remove the following layer from the clusterer's since this is never actually needed.

https://github.com/aeon-toolkit/aeon/blob/main/aeon/clustering/deep_learning/_ae_fcn.py#L232

@av6-github
Copy link

@aadya940 thank you!

@av6-github
Copy link

@aadya940 since there is no output layer variable, what do I put in the outputs parameter in the model?

@aadya940
Copy link
Contributor Author

@av6-github You have to pass the decoder_output layer.

@av6-github
Copy link

@aadya940 i am having some issues with pre commit and certain checks, so i am currently unable to make a proper pull request. :(
Apologies!

@aadya940
Copy link
Contributor Author

aadya940 commented Sep 16, 2024

@av6-github Hello, your PR seemed good to me. If you're having issues with Pre-Commit here are the steps:

Install:

python -m pip install pre-commit

Run:

pre-commit run --files path_to_file/file.py

Do let us know if you need any help.

@MatthewMiddlehurst
Copy link
Member

@av6-github do you still need a hand with this? It is fine to keep a pull request open even if it is failing the CI currently.

@av6-github
Copy link

@av6-github do you still need a hand with this? It is fine to keep a pull request open even if it is failing the CI currently.
Oh, thank you so much for the consideration, it means a lot!
I am really new to this so am a little confused here!
It'd be great if you could help me out here!

@av6-github
Copy link

@av6-github Hello, your PR seemed good to me. If you're having issues with Pre-Commit here are the steps:

Install:

python -m pip install pre-commit

Run:

pre-commit run --files path_to_file/file.py

Do let us know if you need any help.

I tried this, but still am having issues!
Should I fork the repo again and do the changes on that and open a new pr?

@MatthewMiddlehurst
Copy link
Member

Not sure what the issue is without logs really. You can check the errors by creating a PR and then clicking on details on the failing test.

@TonyBagnall
Copy link
Contributor

hi @av6-github we were just reviewing open issues, are you still interested in resolving this? If so, @aadya940 could you advise? thanks.

@tanishy7777
Copy link

hey, if no one is working on this issue is it possible for me to resolve this issue?
@TonyBagnall @aadya940

@aadya940
Copy link
Contributor Author

@tanishy7777 Yes, sure go ahead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clustering Clustering package good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

6 participants