Orange Forum • View topic - confusion matrix gives no results - (it is confused?)

confusion matrix gives no results - (it is confused?)

Report bugs (or imagined bugs).
(Archived/read-only, please use our ticketing system for reporting bugs and their discussion.)
Forum rules
Archived/read-only, please use our ticketing system for reporting bugs and their discussion.

confusion matrix gives no results - (it is confused?)

Postby vnams » Thu Jul 05, 2007 19:11

I am using widgets and am connecting:
file -> classification tree -> Test learners -> confusion matrix.

The test learners shows that the classification is working (i.e. shows values for the evaluation results), but the confusion matrix contains no data and gives the following error:
Unhandled exception of type occured at 15:05:34:
Traceback:
File: orngSignalManager.py in line 60
Function name: __call__
Code: self.method(*k)
File: OWGUI.py in line 931
Function name: __call__
Code: self.f(**kwds)
File: OWConfusionMatrix.py in line 132
Function name: learnerChanged
Code: for r in reduce(add, cm):
Exception type:
Exception value: reduce() arg 2 must support iteration


The test learners, while having evaluation results, also gives the following error:


Unhandled exception of type occured at 15:05:33:
Traceback:
File: OWBaseWidget.py in line 510
Function name: processSignals
Code: handler(value)
File: OWTestLearners.py in line 227
Function name: setTestData
Code: self.test()
File: OWTestLearners.py in line 150
Function name: test
Code: res = orngTest.learnAndTestOnTestData(learners, self.data,
self.testdata)
File: orngTest.py in line 405
Function name: learnAndTestOnTestData
Code: classifiers = [learner(learnset, learnweight) for learner in
learners]
Exception type:
Exception value: 'NoneType' object is not iterable

Thanks, Vilis

Postby Janez » Fri Jul 06, 2007 15:01

This widget shouldn't have been published at all. It's a one-evening's work - we urgently needed to see the misclassifications on some data, so we put it together. It crashes all the time. But if you need it, I'll raise its priority.

Janez

Postby Janez » Mon Aug 27, 2007 12:05

This widget now works, except for the problems with selecting individual cells in the table - if you click and control-click cells, they get selected but the are not highlighted. This is probably a Qt problem (tables in Qt version we use suck), so we are not solving it since we are soon migrating to a newer Qt anyway. Apart from that, the widget should work OK.

Postby sapienza » Mon Sep 24, 2007 18:58

The same widget now gives this error again:

Unhandled exception of type occured at 19:54:09:
Traceback:
File: orngSignalManager.py in line 60
Function name: __call__
Code: self.method(*k)
File: OWGUI.py in line 931
Function name: __call__
Code: self.f(**kwds)
File: OWConfusionMatrix.py in line 132
Function name: learnerChanged
Code: for r in reduce(add, cm):
Exception type:
Exception value: reduce() arg 2 must support iteration

This is from the version downloaded sept 24 2007.

Postby daphne » Thu Oct 25, 2007 12:20

I get exactly the same error in the version I downloaded 25 October 2007.

What I really need is the Precision and Recall of the classification, rather than the accuracy. I figured the confusion matrix provides me with all info I need to calculate them myself.

Since the confusion matrix appears not to be working, is there any other way to establish Precision and Recall?

Thanks a lot,

Daphne


Return to Bugs



cron