Orange Forum • View topic - Problem with Orange Canvas

Problem with Orange Canvas

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

Postby Gregor Leban » Tue Jan 03, 2006 10:44

Can you post the error that you get. without it, we cannot tell you, what is wrong.

Thanks,
Gregor

Here is the error

Postby chuck » Mon Jan 16, 2006 17:55

Excuse me for the delay, below is the error I obtain when I use Cross Validation in Test Learners widget with voting.tab dataset:

Code: Select all

Unhandled exception of type exceptions.TypeError  occured at 11:54:18:
Traceback:
  File: orngSignalManager.py in line 60
  Function name: __call__
  Code: apply(self.method, k)
    File: OWTestLearners.py in line 107
    Function name:
    Code: self.dummy1[i] = lambda x, v=i: self.sChanged(x, v)
      File: OWTestLearners.py in line 267
      Function name: sChanged
      Code: self.test()
        File: OWTestLearners.py in line 139
        Function name: test
        Code: res = orngTest.leaveOneOut(learners, self.data)
          File: orngTest.py in line 134
          Function name: leaveOneOut
          Code: return testWithIndices(learners, examples,
range(len(examples)), pps)
          Exception type: exceptions.TypeError
          Exception value: len() of unsized object


Unhandled exception of type exceptions.TypeError  occured at 11:54:19:
Traceback:
  File: orngSignalManager.py in line 60
  Function name: __call__
  Code: apply(self.method, k)
    File: OWTestLearners.py in line 107
    Function name:
    Code: self.dummy1[i] = lambda x, v=i: self.sChanged(x, v)
      File: OWTestLearners.py in line 267
      Function name: sChanged
      Code: self.test()
        File: OWTestLearners.py in line 137
        Function name: test
        Code: res = orngTest.crossValidation(learners, self.data,
folds=self.nFolds, strat=orange.MakeRandomIndices.StratifiedIfPossible,
callback=pb.advance)
          File: orngTest.py in line 159
          Function name: crossValidation
          Code: indices = orange.MakeRandomIndicesCV(examples, folds,
stratified = strat, randomGenerator = randomGenerator)
          Exception type: exceptions.TypeError
          Exception value: invalid arguments


Unhandled exception of type exceptions.TypeError  occured at 11:54:20:
Traceback:
  File: orngSignalManager.py in line 60
  Function name: __call__
  Code: apply(self.method, k)
    File: OWTestLearners.py in line 107
    Function name:
    Code: self.dummy1[i] = lambda x, v=i: self.sChanged(x, v)
      File: OWTestLearners.py in line 267
      Function name: sChanged
      Code: self.test()
        File: OWTestLearners.py in line 139
        Function name: test
        Code: res = orngTest.leaveOneOut(learners, self.data)
          File: orngTest.py in line 134
          Function name: leaveOneOut
          Code: return testWithIndices(learners, examples,
range(len(examples)), pps)
          Exception type: exceptions.TypeError
          Exception value: len() of unsized object


Return to Questions & Support