Orange Forum • View topic - Orange.classification.neural

Orange.classification.neural

General discussions about Orange and with Orange connected things (data mining, machine learning, bioinformatics...).

Orange.classification.neural

Postby justsomeguy » Tue Aug 28, 2012 15:45

i'm on Win7 x64, with python 2.7, running version 2.6a2 (build on Aug 24 2012) and i do not have access to this class: http://orange.biolab.si/doc/reference/O ... on.neural/

>>> import Orange
>>> dir(Orange.classification)
['CartesianClassifier', 'Classifier', 'ClassifierFD', 'ClassifierFromVar', 'ClassifierFromVarFD', 'ClassifierList', 'ConstantClassifier', 'CostMatrix', 'Learner', 'LearnerFD', 'RandomClassifier', 'RandomLearner', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', 'bayes', 'core', 'knn', 'logreg', 'lookup', 'majority', 'rules', 'svm', 'tree', 'wrappers']

can anyone tell me when this will become available?

Re: Orange.classification.neural

Postby justsomeguy » Fri Aug 31, 2012 18:29

i guess these forums aren't very active :(

Re: Orange.classification.neural

Postby Ales » Mon Sep 03, 2012 11:28

justsomeguy wrote:i guess these forums aren't very active :(

You might have better luck in Questions & Suport
justsomeguy wrote: i do not have access to this class: http://orange.biolab.si/doc/reference/O ... on.neural/
Make sure you have scipy installed (you can download it from http://sourceforge.net/projects/scipy/files/).

Re: Orange.classification.neural

Postby jasonzutty » Tue Jan 29, 2013 19:51

I am also having this problem.
I was first installing orange with pip
Then I tried building from source
Then I found this thread and updated scipy (which meant installing blas and lapack and a Fortran compiler)
But now it's still saying
"AttributeError: 'module' object has no attribute 'neural'"

Might I be forgetting something?

Re: Orange.classification.neural

Postby jasonzutty » Tue Jan 29, 2013 19:57

As a sidenote, in /usr/local/lib/python2.7/dist-packages/Orange/classification neural.py is present.

Re: Orange.classification.neural

Postby jasonzutty » Tue Jan 29, 2013 21:07

I also get the following error with C45 trees... could it be my installation?
orange.KernelException: C45Loader: /usr/local/lib/python2.7/dist-packages/Orange/c45.so: cannot open shared object file: No such file or directory

Re: Orange.classification.neural

Postby marko » Sat Feb 02, 2013 7:15

You have to compile C45 trees separately due to licencing issues: http://orange.biolab.si/docs/latest/ref ... -5-plug-in

Re: Orange.classification.neural

Postby Ales » Mon Feb 04, 2013 10:36

jasonzutty wrote:"AttributeError: 'module' object has no attribute 'neural'"

Can you run
Code: Select all
import Orange.classification.netural
from the python shell.

Re: Orange.classification.neural

Postby jasonzutty » Mon Feb 04, 2013 16:26

Yes, now that you mention it, import Orange.classification.neural does seem to work from the shell, but not from running in a script.

Why might this be?

Re: Orange.classification.neural

Postby jasonzutty » Mon Feb 04, 2013 16:55

So, fixed the problem, but I don't understand why this worked. If in my code I explicitly import Orange.classification.neural it works fine.

Any ideas what would cause this?

Re: Orange.classification.neural

Postby Ales » Wed Feb 06, 2013 11:29

jasonzutty wrote:Any ideas what would cause this?
Yes. The Orange.classification.neural was not actually imported when importing Orange itself. Sorry I should have caught this sooner. The problem was I also had orange multitarget add-on which does get imported at the same time as Orange and itself does import neural module. So when I tested the import on my machine it seemed like it worked.

I have fixed the issue and added an explicit import. Can you update and rebuild.


Return to General Discussions