Orange Forum • View topic - debian classification tree fault

debian classification tree fault

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

debian classification tree fault

Postby mellotanica » Tue Nov 06, 2012 18:26

hello everybody.

i compiled orange for debian wheezy from nightly package orange-source-snapshot-hg-2012-11-05

trying to mess with the software, i got myself in trouble when i tried to use the classification tree widget, it shown an error about a lot of widgets not initializing because it could not find the orangeqt module (i will recompile orange this evening and post the error log tomorrow)

i noticed that during the compilation it showed some warnings like theese:

Warning: class 'NetworkOptimization' will not be picklable
Warning: class 'Network' will not be picklable
Warning: class 'Pathfinder' will not be picklable
Warning: class 'GraphLayout' will not be picklable

here is the compilation log:
http://pastebin.com/jstwNWvm
(warnings at line 3246 and a couple near the beginning of the log)

is there something wrong with it?

thanks
marco

Re: debian classification tree fault

Postby mellotanica » Wed Nov 07, 2012 9:42

putting in a canvas a classification tree widgeet (connected to a data flow) with gain ratio criteria makes orange log this error:

Code: Select all
There were problems importing the following widgets:
   OWC45Tree: c45 is not found
   OWNxExplorer3D: No module named OWNxExplorerQt
   OWDiscretizeQt: cannot import name orangeqt
   OWDistributionsQt: cannot import name orangeqt
   OWParallelCoordinatesQt: cannot import name orangeqt
   OWSphereviz3D: cannot import name orangeqt
   OWMDSQt: cannot import name orangeqt
   OWScatterPlot3D: cannot import name orangeqt
   OWLinProjQt: cannot import name orangeqt
   OWScatterPlotQt: cannot import name orangeqt
   OWLinProj3D: cannot import name orangeqt
   OWPolyvizQt: cannot import name orangeqt
   OWRadvizQt: cannot import name orangeqt
   OWItemsetViz: No module named OWNetworkCanvas
   OWPCA: cannot import name orangeqt
The following widgets could not be imported and will not be available: OWSphereviz3D, OWPCA, OWC45Tree, OWLinProj3D, OWParallelCoordinatesQt, OWScatterPlotQt, OWNxExplorer3D, OWRadvizQt, OWMDSQt, OWLinProjQt, OWDistributionsQt, OWScatterPlot3D, OWDiscretizeQt, OWPolyvizQt.
The following prototype widgets could not be imported and will not be available: OWItemsetViz.

Unhandled exception of type AttributeError occured at 9:39:16:
Traceback:
  File: OWBaseWidget.py, line 679 in processSignals
  Code: handler(value)
    File: OWClassificationTree.py, line 169 in setData
    Code: self.setLearner()
      File: OWClassificationTree.py, line 154 in setLearner
      Code: tree_graph = self.classifier.to_network()
        File: tree.py, line 2707 in to_network
        Code: net = Orange.network.DiGraph()
          AttributeError: 'module' object has no attribute 'network'


if i put a test leartner after the classification tree, results seems good for train and test data, but a tree viewer cannot display the tree generated, it shows an empty tree with only the root node.

is there a solution?

p.s. i solved the c4.5 problem by compiling the source code for the algorythm yesterday before removing and reinstalling orange, i can do that easily but that only solves the first widget problem.

thanks
marco

Re: debian classification tree fault

Postby Ales » Wed Nov 07, 2012 12:35

Miha recently moved the 'Orange.network' code to its own repository (that can be installed as an Orange add-on), but left some code still using it in the widget.
I removed it, so you can try updating from bitbucket or wait for tomorrows source snapshot.

The warnings are not a problem (they are expected).


Return to Questions & Support



cron