I’m new working with python modules and packages and I’m building a neural network from scratch so I’m trying to organize the packeges and modules to make everything clearer. Here’s how the packages are organized:
├── activations/
│ └── init.py
│ └── Activations.py
│
├── losses/
│ └── init.py
│ └── Losses.py
│
├── optimizers/
│ └── init.py
│ └── Optimizers.py
│
├── neuralnetwork/
│ └── init.py
│ └── Neuralnetwork.py
|
├── scrips/
│ └── proofs.py
When I try to import any of the modules from proofs.py like:
import activations.Activations
it says “ModuleNotFoundError: No module named ‘activations'”.
And activations is not even a module (as long as I understand it is a package with a module named Activatios.py). Can anyone help me to solve this? Thank u!
I already tried running the proofs.py file out from the scrips directory and it seems to recognize the existence of something called “activations” but as a module, again, as I understand it is a package.
Brayan 235 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.