Orange Forum • View topic - orange.MeasureAttribute_info Aborted?

orange.MeasureAttribute_info Aborted?

A place to ask questions about methods in Orange and how they are used and other general support.

orange.MeasureAttribute_info Aborted?

Postby jgilbert » Fri Mar 04, 2005 1:45

First, download the following:
http://www.uvm.edu/~jgilbert/ex.txt

Now, execute this script:
Code: Select all
import orange

data = orange.ExampleTable('ex.txt')
meas = orange.MeasureAttribute_info()
for attr in data.domain.attributes:
    print meas(attr, data)

The result I get is simply "Aborted".

Compare the result to the following:
Code: Select all
import orange

data = orange.ExampleTable('ex.txt')
meas = orange.MeasureAttribute_relief()
for attr in data.domain.attributes:
    print meas(attr, data)

Why doesn't the first work with my dataset? Both work with the "lenses.tab" datasest.

Postby Blaz » Fri Mar 04, 2005 17:29

Your code runs on my Win32 Orange (I chedcked it both with version build Jan 7 and Mar 1). The results are:

0.134635433555
0.27748760581
0.173599109054
0.0786908715963
0.16190443933
0.00704143801704
0.0735298246145
0.0346923917532
0.0613105148077
0.0466359704733
0.0315159410238
0.102483972907
0.0322460979223
0.102600321174
0.0148699115962
0.0639203637838
0.102747902274
0.0113947223872
0.129207715392
0.0371793359518

and

0.046377979219
0.111158154905
0.0629731714725
-0.00436242297292
0.113637246192
-0.032261133194
-0.00334432744421
0.00728666502982
0.00435887323692
-0.0209984388202
-0.0153951467946
0.0175442341715
-0.0431963093579
0.0434481501579
-0.0327191613615
0.0631693005562
0.106309309602
-0.0172494892031
0.0110260490328
0.0274528581649

Which platform are you using?

Postby jgilbert » Fri Mar 04, 2005 20:17

Hmm. I'm running Linux. I'm running orange-source-0.9.5.zip as I don't have any newer version that compiles.

Postby tomaz » Wed Mar 09, 2005 9:50

- If you look in the reference (http://www.ailab.si/orange/doc/referenc ... ribute.htm) you will see that you need a discrete class. Make your class discrete by adding "D" into you class attribute descriptor, in your case: "cD#class" (http://www.ailab.si/orange/doc/referenc ... imited.htm).

- We were in the middle of a bigger change in the way the sources and Orange library are organized and exported. You should be able to compile the latest orange source now (from CVS or daily snapshot).

-TC

Postby jgilbert » Wed Mar 09, 2005 17:02

I heard a rumor that you're moving towards a dist-utils script, which is the best way to install Python modules.

I grabbed today's snapshot (orange-source-snap-2005-03-09.zip) and tried to compile it. Well, make worked. Great!! make install did not, on the other hand. You can find the results of my make install here: http://www.uvm.edu/~jgilbert/make_install.txt

A quick grep reveals that there's an IndentationError in OWDataSamplerA.py. There are a whole host of errors near the end, Permission denied stuff. I did run make install as root, so that's odd.

I'm no Makefile guru, so I can't put my finger on the problem. But this is the same install problem I've had for a while. Any ideas?

By the way, I'm running this on Debian GNU/Linux.


Return to Questions & Support



cron