Orange Forum • View topic - c4.5 crashes...

c4.5 crashes...

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

c4.5 crashes...

Postby ghyan » Tue Jul 10, 2012 6:08

Sorry for bothering you again. I had trouble to run c4.5 again, regardless of what version of python I use. Could any of you run a simple test on the following data and see whether it crashes as well? Each row has ten features (a0 -- a9), and there are two families (A and B). I ran it on a Mac desktop. Many many thanks!

The code is simple:

import Orange
from Orange.evaluation import testing, scoring
learner = Orange.classification.tree.C45Learner()
data = Orange.data.Table('./y.tab')
results = testing.cross_validation([learner], data, folds = 5)

Data (y.tab):

a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 family
c c c c c c c c c c d
class
1220.6803653 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 97.0074180979 94.7969850028 -197.0 -197.0 -211.51583617 A
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073162384 94.7969850028 -197.0 -197.0 -211.51583617 A
1220.6803653 1054.90330148 2788.30768803 1096.63336289 2788.30775989 97.0074137168 94.7970219617 -197.0 798.102606306 197.000152184 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
1220.6803653 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 97.007318429 94.7969850028 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 97.0105691682 94.7969850028 -197.0 -197.0 -211.51583617 A
1220.6803653 1054.90330148 2788.30768803 1096.63335807 2788.30761532 97.0073994784 94.7970208747 -197.0 798.102606306 197.0001324 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
-197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
-197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
-197.0 1054.9031709 -197.0 -197.0 -197.0 97.0073151432 94.7969893509 -197.0 -197.0 -211.51583617 A
-197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
1220.6803653 -197.0 -197.0 -197.0 -197.0 97.0073490963 94.7969850028 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 97.0078299166 94.7969850028 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 97.0108002686 94.7969850028 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 97.0105691682 94.7969850028 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 97.0076196262 94.7969850028 -197.0 -197.0 -211.51583617 A
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073107621 94.7969850028 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 97.00732281 94.7969850028 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 97.0105691682 94.7969850028 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073162384 94.7969850028 -197.0 -197.0 -211.51583617 A
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073129526 94.7969850028 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 97.0073162384 94.7969850028 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 97.0073107621 94.7969850028 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 97.0086371251 94.7969850028 -197.0 -197.0 -211.51583617 A
-433.280060883 1054.9031709 -197.0 -197.0 -197.0 97.0087324129 94.796994786 -197.0 -197.0 -211.51583617 A
-433.280060883 1054.9031709 -197.0 -197.0 -197.0 97.0087324129 94.796994786 -197.0 -197.0 -211.51583617 A
-433.280060883 1054.9031709 -197.0 -197.0 -197.0 97.0087324129 94.796994786 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 97.007318429 94.7969850028 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 97.0076196262 94.7969850028 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 97.0078299166 94.7969850028 -197.0 -197.0 -211.51583617 A
-433.280060883 1054.9031709 -197.0 -197.0 -197.0 97.0087324129 94.796994786 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
1220.6803653 -197.0 -197.0 -197.0 -197.0 97.0073162384 94.7969850028 -197.0 -197.0 -211.51583617 A
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073107621 94.7969850028 -197.0 -197.0 -211.51583617 A
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073107621 94.7969850028 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 97.0073490963 94.7969850028 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 97.0074180979 94.7969850028 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073107621 94.7969850028 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
-197.0 1054.9031709 -197.0 -197.0 -197.0 97.0073151432 94.7969893509 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073162384 94.7969850028 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 97.0086371251 94.7969850028 -197.0 -197.0 -211.51583617 A
-197.0 1054.9031709 -197.0 -197.0 -197.0 97.0073151432 94.7969893509 -197.0 -197.0 -211.51583617 A
-197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
1220.6803653 -197.0 -197.0 -197.0 -197.0 97.0073162384 94.7969850028 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 97.0105691682 94.7969850028 -197.0 -197.0 -211.51583617 A
-433.280060883 -197.0 -197.0 -197.0 -197.0 97.00732281 94.7969850028 -197.0 -197.0 -211.51583617 A
-197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 A
1220.6803653 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 798.102439489 197.000012175 B
1220.6803653 1054.9032082 -197.0 1096.63328097 -197.0 97.00734362 94.7969980471 -197.0 798.102539579 197.000054786 B
1220.6803653 -197.0 -197.0 1096.63345445 -197.0 97.0073972879 94.7969893509 -197.0 798.102684154 197.000136966 B
-197.0 -197.0 -197.0 1096.63325205 -197.0 97.0073348579 94.7969980471 -197.0 798.10251363 197.000042612 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073217147 94.7969871768 -197.0 -197.0 197.000024349 B
1220.6803653 1054.90332013 2788.30775476 1096.63336771 2788.30757083 97.0073940021 94.7970263099 -197.0 798.102606306 197.000124791 B
39.2800608828 -197.0 2788.30764355 -197.0 2788.30725944 97.0073545726 94.7970002212 6271.1660964 798.102495094 197.000070005 B
-197.0 1054.9032222 2788.30768803 1096.63369059 2788.30826034 97.0074465747 94.7970013082 -197.0 798.102862092 197.000258713 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073118574 94.7969860898 -197.0 -197.0 197.000010653 B
1220.6803653 -197.0 -197.0 1096.63320868 -197.0 97.0073206195 94.7969882639 -197.0 -197.0 197.000022828 B
-197.0 -197.0 -197.0 1096.6331894 -197.0 97.007318429 94.7969871768 -197.0 -197.0 -211.51583617 B
-197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 197.0 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073118574 94.7969860898 -197.0 -197.0 197.000010653 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.007318429 94.7969871768 -197.0 -197.0 197.000019784 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073260958 94.7969871768 -197.0 -197.0 197.000030437 B
-197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 197.0 B
-197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 197.000004566 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073633347 94.7970208747 -197.0 798.102610013 197.000082179 B
-197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -211.51583617 B
-197.0 -197.0 -197.0 1096.63336289 -197.0 97.0073622395 94.7969915249 -197.0 798.102595185 197.000082179 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.007318429 94.7969871768 -197.0 -197.0 197.000019784 B
-197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 197.0 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073403342 94.7970034823 -197.0 798.102528458 197.000050221 B
1220.6803653 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 197.0 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073129526 94.7969871768 -197.0 -197.0 197.000012175 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073260958 94.7969871768 -197.0 -197.0 197.000030437 B
1220.6803653 1054.90319421 -197.0 1096.6332906 -197.0 97.007348001 94.796994786 -197.0 798.102543286 197.000063917 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073118574 94.7969860898 -197.0 -197.0 197.000010653 B
1220.6803653 1054.90319421 -197.0 1096.6332906 -197.0 97.007348001 94.796994786 -197.0 798.102543286 197.000063917 B
1220.6803653 1054.90320354 -197.0 1096.6332906 -197.0 97.0073501916 94.7969980471 -197.0 798.102539579 197.000063917 B
-197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 197.000006087 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073118574 94.7969860898 -197.0 -197.0 197.000010653 B
-197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 798.10245061 197.000015218 B
-197.0 -197.0 -197.0 1096.63323277 -197.0 97.0073282863 94.7969882639 -197.0 -197.0 197.00003348 B
-197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 196.999998478 B
-197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 196.999998478 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073348579 94.7969958731 -197.0 -197.0 197.000042612 B
-197.0 1054.90319888 -197.0 -197.0 -197.0 97.0073315721 94.7969958731 -197.0 -197.0 197.000038046 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.007318429 94.7969871768 -197.0 -197.0 197.000019784 B
-197.0 1054.90330614 2788.30772139 1096.63338699 2788.30771541 97.0074082405 94.7970230488 -197.0 798.102639669 197.000144575 B
-197.0 1054.90319421 -197.0 1096.63357011 -197.0 97.0075199573 94.797068704 6271.16997582 798.102795365 197.000299802 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073337626 94.7969882639 -197.0 798.102509923 197.000042612 B
1220.6803653 -197.0 -197.0 -197.0 -197.0 97.0073217147 94.7969871768 -197.0 -197.0 197.000024349 B
1220.6803653 1054.90332013 2788.30775476 1096.63337735 2788.30759307 97.0073961926 94.7970263099 -197.0 798.10261372 197.000127835 B
1220.6803653 -197.0 -197.0 -197.0 -197.0 97.0073140479 94.7969871768 -197.0 -197.0 197.000013697 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073118574 94.7969860898 -197.0 -197.0 197.000010653 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073118574 94.7969860898 -197.0 -197.0 197.000010653 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073260958 94.7969871768 -197.0 -197.0 197.000030437 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073118574 94.7969860898 -197.0 -197.0 197.000010653 B
1220.6803653 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 196.999998478 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073118574 94.7969860898 -197.0 -197.0 197.000010653 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073118574 94.7969860898 -197.0 -197.0 197.000010653 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073195242 94.7969871768 -197.0 -197.0 197.000021306 B
-197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 197.000006087 B
-197.0 -197.0 -197.0 1096.63325205 -197.0 97.0073348579 94.7969980471 -197.0 798.10251363 197.000042612 B
1220.6803653 1054.90327816 2788.30765467 1096.63331952 2788.30791559 97.0074279552 94.7970154396 -197.0 798.102617427 197.000171968 B
1220.6803653 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 196.999998478 B
-197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 197.0 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073304768 94.7970013082 -197.0 -197.0 197.000036524 B
-197.0 -197.0 -197.0 1096.63326651 -197.0 97.0073370484 94.7969991341 -197.0 798.102521044 197.000045655 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073118574 94.7969860898 -197.0 -197.0 197.000010653 B
1220.6803653 -197.0 -197.0 -197.0 -197.0 97.007318429 94.7969871768 -197.0 -197.0 197.000019784 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073414295 94.7969980471 6271.16602411 798.102509923 197.000051743 B
1220.6803653 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 196.999998478 B
-197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 197.0 B
-197.0 1054.90318955 -197.0 1096.63324241 -197.0 97.0073337626 94.796993699 -197.0 798.102506216 197.00004109 B
-197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 196.999998478 B
-197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 197.0 B
-197.0 -197.0 -197.0 -197.0 -197.0 97.0073118574 94.7969860898 -197.0 -197.0 197.000010653 B
-197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 -197.0 197.0 B

Re: c4.5 crashes...

Postby Ales » Tue Jul 10, 2012 10:05

Yes, It does crash with segmentation fault on my machine.
From the backtrace, it seems to be caught in an infinite recursion in c45's FormTree() function.

Re: c4.5 crashes...

Postby ghyan » Tue Jul 10, 2012 18:28

Ales thanks for your help. Any easy way to fix this?

Re: c4.5 crashes...

Postby Ales » Fri Jul 13, 2012 9:28

ghyan wrote:Any easy way to fix this?
No.
The bug seems to be in c4.5. Saving the Y.tab in the c4.5 file format and then running the c4.5 program from the command line on the data crashes in the same way.

Re: c4.5 crashes...

Postby ghyan » Fri Jul 13, 2012 18:55

I see. Thanks.


Return to Questions & Support