No module named 'lens.models.ext_models.brl'
Closed this issue · 1 comments
I was trying to run the example in the Read Me and I got this error:
ModuleNotFoundError Traceback (most recent call last)
[c:[path]]Code_Lens.ipynb Cell 2 in ()
----> 1 import lens
2 import torch
3 import numpy as np
File c:[path]\logic_explained_networks\lens_init_.py:2, in
1 from . import utils
----> 2 from . import models
3 from . import logic
4 from . import utils
File c:[path]\logic_explained_networks\lens\models_init_.py:5, in
3 from .mu_nn import XMuNN
4 from .anchors import XAnchorClassifier
----> 5 from .brl import XBRLClassifier
6 from .logistic_regression import XLogisticRegressionClassifier
7 from .tree import XDecisionTreeClassifier
File c:[path]\logic_explained_networks\lens\models\brl.py:14, in
11 from tqdm.auto import tqdm
13 from .base import BaseClassifier, ClassifierNotTrainedError, BaseXModel
---> 14 from .ext_models.brl.RuleListClassifier import RuleListClassifier
15 from ..utils.base import NotAvailableError, brl_extracting_formula
16 from ..utils.metrics import Metric, Accuracy
ModuleNotFoundError: No module named 'lens.models.ext_models.brl'
Hi! BRL was actually missing, we initially thought of not adding it since it was an external module. However, we now added it in the last commit.
Download the latest version, it should work!