Coder Social home page Coder Social logo

pietrobarbiero / logic_explained_networks Goto Github PK

View Code? Open in Web Editor NEW
44.0 44.0 8.0 12.25 MB

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

License: Apache License 2.0

Python 74.52% Jupyter Notebook 24.41% Yacc 1.07%
deep-learning explainable-ai logic machine-learning neural-networks xai

logic_explained_networks's Introduction

Hello! I'm Pietro, Research Assistant and Ph.D. candidate at the University of Cambridge (Clare College).

  • ๐Ÿ”ญ My research activity focuses on explainable artificial intelligence, deep learning, and neuro-symbolic models.

  • ๐Ÿ”Ž My current projects are related to concept learning and reasoning.

  • ๐Ÿ”— For more info about my work, please visit my website.

logic_explained_networks's People

Contributors

gabrieleciravegna avatar hekpomah avatar pietrobarbiero avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

logic_explained_networks's Issues

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

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'

Not able run example in readme.

Dear authors,

I've been trying to run the example given in the readme page. But I am getting an error due to imports from lens.

image

I am not able to find the test_explanation from lens.logic

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

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.