Problem with importing IterativeImputer in Jupyter Notebook
casper-hansen opened this issue · 1 comments
casper-hansen commented
I have a problem with importing the iterative imputer from your package.
from fancyimpute import IterativeImputer
Python version: 3.6.8
FancyImpute version: 0.4.2
TensorFlow version: 1.13.1
This gives me this error trace
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-12-7792427d1a92> in <module>
17 from sklearn.feature_selection import SelectKBest
18
---> 19 from fancyimpute import IterativeImputer
20
21 # Modelling
~\Anaconda3\lib\site-packages\fancyimpute\__init__.py in <module>
4 from .nuclear_norm_minimization import NuclearNormMinimization
5 from .iterative_imputer import IterativeImputer
----> 6 from .matrix_factorization import MatrixFactorization
7 from .iterative_svd import IterativeSVD
8 from .simple_fill import SimpleFill
~\Anaconda3\lib\site-packages\fancyimpute\matrix_factorization.py in <module>
14
15 import numpy as np
---> 16 from keras import regularizers
17 from keras.callbacks import EarlyStopping
18 from keras.layers import Input
~\Anaconda3\lib\site-packages\keras\__init__.py in <module>
1 from __future__ import absolute_import
2
----> 3 from . import utils
4 from . import activations
5 from . import applications
~\Anaconda3\lib\site-packages\keras\utils\__init__.py in <module>
4 from . import data_utils
5 from . import io_utils
----> 6 from . import conv_utils
7
8 # Globally-importable utils.
~\Anaconda3\lib\site-packages\keras\utils\conv_utils.py in <module>
7 from six.moves import range
8 import numpy as np
----> 9 from .. import backend as K
10
11
~\Anaconda3\lib\site-packages\keras\backend\__init__.py in <module>
87 elif _BACKEND == 'tensorflow':
88 sys.stderr.write('Using TensorFlow backend.\n')
---> 89 from .tensorflow_backend import *
90 else:
91 # Try and load external backend.
~\Anaconda3\lib\site-packages\keras\backend\tensorflow_backend.py in <module>
3 from __future__ import print_function
4
----> 5 import tensorflow as tf
6 from tensorflow.python.framework import ops as tf_ops
7 from tensorflow.python.training import moving_averages
~\Anaconda3\lib\site-packages\tensorflow\__init__.py in <module>
27 from tensorflow._api.v1 import autograph
28 from tensorflow._api.v1 import bitwise
---> 29 from tensorflow._api.v1 import compat
30 from tensorflow._api.v1 import data
31 from tensorflow._api.v1 import debugging
~\Anaconda3\lib\site-packages\tensorflow\_api\v1\compat\__init__.py in <module>
19 from __future__ import print_function as _print_function
20
---> 21 from tensorflow._api.v1.compat import v1
22 from tensorflow.python.compat.compat import forward_compatibility_horizon
23 from tensorflow.python.compat.compat import forward_compatible
~\Anaconda3\lib\site-packages\tensorflow\_api\v1\compat\v1\__init__.py in <module>
603 from tensorflow.python.ops.check_ops import ensure_shape
604 from tensorflow.python.ops.confusion_matrix import confusion_matrix_v1 as confusion_matrix
--> 605 from tensorflow.python.ops.gen_nn_ops import quantized_conv2d_and_relu
606 from tensorflow.python.ops.gen_nn_ops import quantized_conv2d_and_relu_and_requantize
607 from tensorflow.python.ops.gen_nn_ops import quantized_conv2d_and_requantize
ImportError: cannot import name 'quantized_conv2d_and_relu'
sergeyf commented
Looks like your tensorflow install is broken! We can't help you there.
…On Thu, Mar 28, 2019, 7:13 AM Casper Bøgeskov Hansen < ***@***.***> wrote:
I have a problem with importing the iterative imputer from your package.
from fancyimpute import IterativeImputer
Python version: 3.6.8
FancyImpute version: 0.4.2
TensorFlow version: 1.13.1
This gives me this error trace
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-12-7792427d1a92> in <module>
17 from sklearn.feature_selection import SelectKBest
18
---> 19 from fancyimpute import IterativeImputer
20
21 # Modelling
~\Anaconda3\lib\site-packages\fancyimpute\__init__.py in <module>
4 from .nuclear_norm_minimization import NuclearNormMinimization
5 from .iterative_imputer import IterativeImputer
----> 6 from .matrix_factorization import MatrixFactorization
7 from .iterative_svd import IterativeSVD
8 from .simple_fill import SimpleFill
~\Anaconda3\lib\site-packages\fancyimpute\matrix_factorization.py in <module>
14
15 import numpy as np
---> 16 from keras import regularizers
17 from keras.callbacks import EarlyStopping
18 from keras.layers import Input
~\Anaconda3\lib\site-packages\keras\__init__.py in <module>
1 from __future__ import absolute_import
2
----> 3 from . import utils
4 from . import activations
5 from . import applications
~\Anaconda3\lib\site-packages\keras\utils\__init__.py in <module>
4 from . import data_utils
5 from . import io_utils
----> 6 from . import conv_utils
7
8 # Globally-importable utils.
~\Anaconda3\lib\site-packages\keras\utils\conv_utils.py in <module>
7 from six.moves import range
8 import numpy as np
----> 9 from .. import backend as K
10
11
~\Anaconda3\lib\site-packages\keras\backend\__init__.py in <module>
87 elif _BACKEND == 'tensorflow':
88 sys.stderr.write('Using TensorFlow backend.\n')
---> 89 from .tensorflow_backend import *
90 else:
91 # Try and load external backend.
~\Anaconda3\lib\site-packages\keras\backend\tensorflow_backend.py in <module>
3 from __future__ import print_function
4
----> 5 import tensorflow as tf
6 from tensorflow.python.framework import ops as tf_ops
7 from tensorflow.python.training import moving_averages
~\Anaconda3\lib\site-packages\tensorflow\__init__.py in <module>
27 from tensorflow._api.v1 import autograph
28 from tensorflow._api.v1 import bitwise
---> 29 from tensorflow._api.v1 import compat
30 from tensorflow._api.v1 import data
31 from tensorflow._api.v1 import debugging
~\Anaconda3\lib\site-packages\tensorflow\_api\v1\compat\__init__.py in <module>
19 from __future__ import print_function as _print_function
20
---> 21 from tensorflow._api.v1.compat import v1
22 from tensorflow.python.compat.compat import forward_compatibility_horizon
23 from tensorflow.python.compat.compat import forward_compatible
~\Anaconda3\lib\site-packages\tensorflow\_api\v1\compat\v1\__init__.py in <module>
603 from tensorflow.python.ops.check_ops import ensure_shape
604 from tensorflow.python.ops.confusion_matrix import confusion_matrix_v1 as confusion_matrix
--> 605 from tensorflow.python.ops.gen_nn_ops import quantized_conv2d_and_relu
606 from tensorflow.python.ops.gen_nn_ops import quantized_conv2d_and_relu_and_requantize
607 from tensorflow.python.ops.gen_nn_ops import quantized_conv2d_and_requantize
ImportError: cannot import name 'quantized_conv2d_and_relu'
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#93>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABya7EiX0d6UWhSXWOL2lgqr6w2aB1aJks5vbM4mgaJpZM4cQQ31>
.