Git Product home page Git Product logo

Comments (3)

groshanlal avatar groshanlal commented on June 14, 2024

Thanks for reporting this issue. This issue results from a DivisionByZeroError in one of the log statements.

This happens when you run TE2Rules for too many stages. In some of the later stages, the algorithm has no new rules to find, hence the count_all variable becomes 0, which then results in the DivisionByZeroError in a log statement showing the progress of the algorithm.

I have fixed this issue in my most recent commit and pushed out a new version to pip. To apply the fix, please update to TE2Rules version 0.8.1.

from te2rules.

groshanlal avatar groshanlal commented on June 14, 2024

As another tip, you can generate the rules explaining the model by running TE2Rules as you have done:

rules = model_explainer.explain(...)

and once the above function has been called, you can refer the rules also here:

rules = model_explainer.rules

As you might already know, this is a short set of representative rules mined by TE2Rules. However, if you want to select the most useful rules yourself from a full list of all possible explaining rules, you can find the longer list of rules here:

rules = model_explainer.longer_rules

Within this extensive set of rules, you have the opportunity to apply your domain knowledge to select those rules that resonate with the decision-making process of a domain expert for the specific task the model is trained for.

While stopping at any stage, you would find lot more rules in the model_explainer.longer_rules than what is directly returned by TE2Rules, providing a wider range of explanations to choose from.

from te2rules.

waziz786 avatar waziz786 commented on June 14, 2024

Thank you very much for your prompt response. the problem has been resolved by updating the package.

image

from te2rules.

Related Issues (6)

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.