Open jordannelson0 opened 1 week ago
The error you're encountering (ModuleNotFoundError: No module named 'tensorflow.keras.layers.experimental') suggests that the version of TensorFlow you are using doesn't have the tensorflow.keras.layers.experimental module. This module has been deprecated in the latest versions of TensorFlow.
To resolve this, you can try this:
First, ensure that your versions of TensorFlow and AutoKeras are compatible. AutoKeras 1.0.20 might not be fully compatible with TensorFlow 2.17.0rc0. You can check the compatibility matrix on the AutoKeras documentation or GitHub repository.
You may need to downgrade TensorFlow to a version compatible with AutoKeras 1.0.20. For example, TensorFlow 2.4.1 is known to be compatible with AutoKeras 1.0.20. You can downgrade TensorFlow using pip:
pip install tensorflow==2.4.1
If downgrading TensorFlow is not an option, you may need to upgrade AutoKeras. However, since you mentioned an error while upgrading AutoKeras, we'll address that next.
Try upgrading AutoKeras to the latest version using pip:
pip install --upgrade autokeras
If you encounter errors during the upgrade, you can try uninstalling and then reinstalling it:
pip uninstall autokeras
pip install autokeras
The error you're encountering (ModuleNotFoundError: No module named 'tensorflow.keras.layers.experimental') suggests that the version of TensorFlow you are using doesn't have the tensorflow.keras.layers.experimental module. This module has been deprecated in the latest versions of TensorFlow.
To resolve this, you can try this:
Check TensorFlow and AutoKeras Compatibility
First, ensure that your versions of TensorFlow and AutoKeras are compatible. AutoKeras 1.0.20 might not be fully compatible with TensorFlow 2.17.0rc0. You can check the compatibility matrix on the AutoKeras documentation or GitHub repository.
Update or Downgrade TensorFlow
You may need to downgrade TensorFlow to a version compatible with AutoKeras 1.0.20. For example, TensorFlow 2.4.1 is known to be compatible with AutoKeras 1.0.20. You can downgrade TensorFlow using pip:
pip install tensorflow==2.4.1
Install the Latest AutoKeras
If downgrading TensorFlow is not an option, you may need to upgrade AutoKeras. However, since you mentioned an error while upgrading AutoKeras, we'll address that next.
Resolve AutoKeras Upgrade Issue
Try upgrading AutoKeras to the latest version using pip:
pip install --upgrade autokeras
If you encounter errors during the upgrade, you can try uninstalling and then reinstalling it:
pip uninstall autokeras pip install autokeras
I can't get autokeras 2.0 because of this: The conflict is caused by: keras-nlp 0.14.0 depends on tensorflow-text; platform_system != "Darwin" keras-nlp 0.12.1 depends on tensorflow-text; platform_system != "Darwin" keras-nlp 0.12.0 depends on tensorflow-text; platform_system != "Darwin" keras-nlp 0.11.1 depends on tensorflow-text; platform_system != "Darwin" keras-nlp 0.11.0 depends on tensorflow-text; platform_system != "Darwin" keras-nlp 0.10.0 depends on tensorflow-text; platform_system != "Darwin" keras-nlp 0.9.3 depends on tensorflow-text; platform_system != "Darwin" keras-nlp 0.9.2 depends on tensorflow-text; platform_system != "Darwin" keras-nlp 0.9.1 depends on tensorflow-text; platform_system != "Darwin" keras-nlp 0.9.0 depends on tensorflow-text; platform_system != "Darwin" keras-nlp 0.8.2 depends on tensorflow-text; platform_system != "Darwin" keras-nlp 0.8.1 depends on tensorflow-text; platform_system != "Darwin" keras-nlp 0.8.0 depends on tensorflow-text; platform_system != "Darwin"
Bug Description
I am getting this error: File "C:\Users\jorda\Documents\PhD\Project\NLP_algorithms\CNN_AM.py", line 3, inSetup Details
Include the details about the versions of:
Additional context