adapt: ModuleNotFoundError: No module named 'tensorflow.keras.wrappers'
I am using tensorflow 2.13.0 and keras 2.13.1. I got this error? could you please advise what is the version of compitable TensorFlow
ModuleNotFoundError Traceback (most recent call last)
Cell In[4], line 1
----> 1 import adapt
File ~/miniforge3/envs/tensorflow/lib/python3.10/site-packages/adapt/__init__.py:5
1 """
2 ADAPT: Awesome Domain Adaptation Package Toolbox
3 """
----> 5 from adapt import feature_based
6 from adapt import instance_based
7 from adapt import parameter_based
File ~/miniforge3/envs/tensorflow/lib/python3.10/site-packages/adapt/feature_based/__init__.py:5
1 """
2 Feature-Based Methods Module
3 """
----> 5 from ._fa import FA
6 from ._coral import CORAL
7 from ._dann import DANN
File ~/miniforge3/envs/tensorflow/lib/python3.10/site-packages/adapt/feature_based/_fa.py:11
8 from sklearn.utils import check_array
9 from sklearn.exceptions import NotFittedError
---> 11 from adapt.base import BaseAdaptEstimator, make_insert_doc
12 from adapt.utils import check_arrays
15 @make_insert_doc(supervised=True)
16 class FA(BaseAdaptEstimator):
File ~/miniforge3/envs/tensorflow/lib/python3.10/site-packages/adapt/base.py:16
14 from sklearn.exceptions import NotFittedError
15 from tensorflow.keras import Model
---> 16 from tensorflow.keras.wrappers.scikit_learn import KerasClassifier, KerasRegressor
18 from adapt.utils import (check_estimator,
19 check_network,
20 check_arrays,
(...)
25 get_default_task,
26 get_default_discriminator)
27 from adapt.metrics import normalized_linear_discrepancy
ModuleNotFoundError: No module named 'tensorflow.keras.wrappers'
About this issue
- Original URL
- State: open
- Created 8 months ago
- Comments: 16
Another Approach you can try pip install tensorflow==2.12.0