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

Remove/rename aesara.tensor.nnet sub-package #674

Closed
twiecki opened this issue Nov 24, 2021 · 8 comments · Fixed by #1188
Closed

Remove/rename aesara.tensor.nnet sub-package #674

twiecki opened this issue Nov 24, 2021 · 8 comments · Fixed by #1188
Labels
help wanted Extra attention is needed refactor This issue involves refactoring

Comments

@twiecki
Copy link
Contributor

twiecki commented Nov 24, 2021

I think having nnet as a name is pretty confusing, these are general math functions not only used for neural nets, and by now Aesara isn't geared towards neural nets anyway. Maybe we can rename (to what?) or, better I think, just move it down to the regular name space.

@twiecki twiecki added refactor This issue involves refactoring request discussion labels Nov 24, 2021
@ricardoV94
Copy link
Contributor

ricardoV94 commented Nov 24, 2021

There are a lot of things there that we might not want to move. All those crossentropy / bias variations.

We already moved sigmoid and softplus out, and I think the next step is to move softmax/log_softmax out (#673).

@brandonwillard
Copy link
Member

I would go so far as to say that we should disable auto-importing and add a deprecation warning to the aesara.tensor.nnet sub-package ASAP, because we don't intend to maintain any of that neural network code as part of core Aesara.

Also, since the tests for that sub-package take a good amount of our CI time (~2 hours), we could subsequently disable testing for it and significantly speed up testing.

@brandonwillard brandonwillard added help wanted Extra attention is needed and removed request discussion labels Nov 25, 2021
@twiecki
Copy link
Contributor Author

twiecki commented Nov 25, 2021 via email

@twiecki
Copy link
Contributor Author

twiecki commented Nov 25, 2021

For someone motivated, they could build a NN package on top of aesara, and this might be a good starting point.

@brandonwillard brandonwillard changed the title Remove/rename nnet submodule Remove/rename aesara.tensor.nnet sub-package Dec 11, 2021
@canyon289
Copy link
Contributor

canyon289 commented Dec 13, 2021

I would go so far as to say that we should disable auto-importing and add a deprecation warning to the aesara.tensor.nnet sub-package ASAP, because we don't intend to maintain any of that neural network code as part of core Aesara.

Also, since the tests for that sub-package take a good amount of our CI time (~2 hours), we could subsequently disable testing for it and significantly speed up testing.

Agree with this, it was a huge slowdown when I was getting developing with aesara both because of all the things that broke in it when I made changes, and the testing slowdown. Removing would streamline codebase tremendously.

I dont think it needs a deprecation warning since aesara is a fork and its not like we promised to maintain its functionality. Can we just immediately delete it?

@rlouf
Copy link
Member

rlouf commented Aug 27, 2022

I agree we should remove all the functionalities in nnet that are specific to neural nets in Aesara (and signal?).

When I have time I'd like to move these functionalities to a Keras-like library that implements the layers as OpFromGraphs to demonstrate what Aesara can do.

@rlouf rlouf linked a pull request Sep 15, 2022 that will close this issue
11 tasks
@rth
Copy link

rth commented Mar 6, 2023

So from which module should one import for instance the convolution operator once that sub-package is indeed removed?

@brandonwillard
Copy link
Member

So from which module should one import for instance the convolution operator once that sub-package is indeed removed?

We have discussed moving the nnet material to another package, but, since conv is a SciPy-like feature, we could just as well keep it with the existing SciPy support in Aesara. We won't remove it until that next step is clear.

Regardless, if there are people still depending on this code, we will at the very least keep it available in some form before removing it from here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed refactor This issue involves refactoring
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants