Can't import Gammli
Janalytics94 opened this issue · 2 comments
Janalytics94 commented
Hi,
if I try to use gammli (installed it according to read me and also installed the library interpret with pip, Anaconda and Python 3.7 are available ) I get the following error message:
ImportError Traceback (most recent call last)
<ipython-input-1-76c77b19f9bd> in <module>
6 from sklearn.metrics import mean_squared_error,roc_auc_score,mean_absolute_error,log_loss
7
----> 8 from gammli.gammli import GAMMLI
9 from gammli.dataReader import data_initialize
10 from gammli.utils import local_visualize
/opt/conda/envs/venv/lib/python3.7/site-packages/gammli/__init__.py in <module>
1
----> 2 from .gammli import GAMMLI
3
4
5 __all__ = ['GAMMLI']
/opt/conda/envs/venv/lib/python3.7/site-packages/gammli/gammli.py in <module>
4 import tensorflow as tf
5 from .li import LatentVariable
----> 6 from .gaminet import GAMINet
7 from sklearn.metrics.pairwise import cosine_similarity
8 from sklearn.cluster import KMeans
/opt/conda/envs/venv/lib/python3.7/site-packages/gammli/gaminet.py in <module>
6
7 from .layers import *
----> 8 from .utils import get_interaction_list
9 from itertools import product
10
/opt/conda/envs/venv/lib/python3.7/site-packages/gammli/utils.py in <module>
14 from interpret.glassbox.ebm.utils import EBMUtils
15 from interpret.utils import autogen_schema
---> 16 from interpret.glassbox.ebm.internal import NativeEBM
17 from interpret.glassbox.ebm.ebm import EBMPreprocessor
18
ImportError: cannot import name 'NativeEBM' from 'interpret.glassbox.ebm.internal' (/opt/conda/envs/venv/lib/python3.7/site-packages/interpret/glassbox/ebm/internal.py)
Any hints what to do ?
Thank you very much in advance.
Janalytics94 commented
Solved it on my own
lxy-0 commented
I also meet the same problem.