Closed madainigun14 closed 1 year ago
There has been a change in how learners work, and the viewer wasn't adapted. In #6306 I did essentially the same as you here: I removed the line from the report because learner's parameters should be reported in Rule Learner, not here.
Thanks for exploring and reporting this.
Here is my environment: Python 3.9 PyQt5 Orange3
here is my code, you can run this code directly
Then, click the "report" at the bottom left of the OWRuleViewer
then "CN2Classifier object has no attribute params" shows
but, if I comment line 177 in Python\Lib\site-packages\Orange\widgets\visualize\owruleviewer.py as below
then error will not occur and it works correctly:
so, is this a bug? or do I forget a neccesary step (call some method or set some attribute?) after creating an instance of OWRuleViewer?