Comments (3)
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.
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.
Thank you very much for your prompt response. the problem has been resolved by updating the package.
from te2rules.
Related Issues (6)
- The limitation of feature-names HOT 6
- keyerror:0 HOT 1
- Imbalanced dataset HOT 1
- Support for XGBClassifier HOT 9
- Keyerror
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from te2rules.