pietrobarbiero / logic_explained_networks

Logic Explained Networks is a python repository implementing explainable-by-design deep learning models.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No module named 'lens.models.ext_models.anchor'

maxheming opened this issue · comments

ModuleNotFoundError Traceback (most recent call last)
Cell In[1], line 7
4 import numpy as np
5 import matplotlib.pyplot as plt
----> 7 from lens import logic
8 # from ...lens import logic
10 torch.manual_seed(0)

File E:\learn\interpretability\logic_rule\logic_explained_networks-master\lens_init_.py:2
1 from . import utils
----> 2 from . import models
3 from . import logic
4 from . import utils

File E:\learn\interpretability\logic_rule\logic_explained_networks-master\lens\models_init_.py:4
2 from .relu_nn import XReluNN
3 from .mu_nn import XMuNN
----> 4 from .anchors import XAnchorClassifier
5 from .brl import XBRLClassifier
6 from .logistic_regression import XLogisticRegressionClassifier

File E:\learn\interpretability\logic_rule\logic_explained_networks-master\lens\models\anchors.py:17
14 from tqdm import tqdm
16 from lens.logic import replace_names, test_explanation
---> 17 from lens.models.ext_models.anchor.anchor_tabular import AnchorTabularExplainer
18 from lens.utils.datasets import StructuredDataset
19 from .base import BaseClassifier, ClassifierNotTrainedError, BaseXModel

ModuleNotFoundError: No module named 'lens.models.ext_models.anchor'

Thank you for reporting the bug!
It was actually an error, the original anchors files were not included in the repository.
With the latest commit it should be fine now!