Description
It seems that there is some issue when calling the following import instruction (notebook AReM_TF.ipynb)
from timeshap.plot import plot_temp_coalition_pruning, plot_event_heatmap, plot_feat_barplot, plot_cell_level
ImportError Traceback (most recent call last)
Cell In[32], line 1
----> 1 from timeshap.plot import plot_temp_coalition_pruning, plot_event_heatmap, plot_feat_barplot, plot_cell_level
2 from timeshap.explainer import local_pruning, local_event, local_feat, local_cell_level
3 # select model features only
File ~/miniconda3/envs/tf_3_9/lib/python3.9/site-packages/timeshap/plot/init.py:20
18 from .feature_level import *
19 from .cell_level import *
---> 20 from .local_report import *
21 from .global_report import *
File ~/miniconda3/envs/tf_3_9/lib/python3.9/site-packages/timeshap/plot/local_report.py:16
14 import pandas as pd
15 from timeshap.plot import plot_temp_coalition_pruning, plot_event_heatmap, plot_feat_barplot, plot_cell_level
---> 16 from timeshap.explainer import prune_given_data
19 def plot_local_report(pruning_dict: dict,
20 event_dict: dict,
21 feature_dict: dict,
(...)
26 cell_data: pd.DataFrame = None,
27 ):
28 """Plots a local report given explanations
29
30 Parameters
(...)
54 Cell explanations to plot
55 """
File ~/miniconda3/envs/tf_3_9/lib/python3.9/site-packages/timeshap/explainer/init.py:20
18 from .feature_level import *
19 from .cell_level import *
---> 20 from .local_methods import *
21 from .global_methods import *
File ~/miniconda3/envs/tf_3_9/lib/python3.9/site-packages/timeshap/explainer/local_methods.py:18
16 import numpy as np
17 import pandas as pd
---> 18 from timeshap.plot import plot_local_report
19 from timeshap.explainer import local_pruning, local_event, local_feat, local_cell_level
20 from timeshap.utils import validate_input
ImportError: cannot import name 'plot_local_report' from partially initialized module 'timeshap.plot' (most likely due to a circular import)