Ticket #1217 (closed bug: worksforme)

Opened 2 years ago

Last modified 16 months ago

Crash with error message 'Singular matrix'

Reported by: skokko Owned by: lanz
Milestone: Component: library
Severity: minor Keywords:
Cc: Blocking:
Blocked By:

Description

I ran the following commands (I am attaching PROBLEM.tab):

import orange data = orange.ExampleTable('PROBLEM.tab') import orngRegression regr = orngRegression.LinearRegressionLearner(data, intercept=True)

The result was a crash, as follows:

/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/orange/orngRegression.py:13: DeprecationWarning: object.new() takes no parameters

learner = object.new(self, kwds)

Traceback (most recent call last):

File "<stdin>", line 1, in <module> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/orange/orngRegression.py", line 16, in new

return learner(data)

File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/orange/orngRegression.py", line 103, in call

errCoeff = sqrt(sigmaSquare * inv(dot(X.T,X)).diagonal())

File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/linalg/linalg.py", line 445, in inv

return wrap(solve(a, identity(a.shape[0], dtype=a.dtype)))

File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/linalg/linalg.py", line 328, in solve

raise LinAlgError, 'Singular matrix'

numpy.linalg.linalg.LinAlgError: Singular matrix

Attachments

PROBLEM.tab Download (17.9 KB) - added by skokko 2 years ago.
Linear Regression on 7 independent variables.

Change History

Changed 2 years ago by skokko

Linear Regression on 7 independent variables.

comment:1 Changed 2 years ago by lanz

  • Owner set to lanz
  • Status changed from new to accepted

I do not get the error with the latest version of Orange, so I suggest you update your version. The best way is to use easy_install or pip and install the latest package from pypi. You can also use the bitbucket repository ( https://bitbucket.org/biolab/orange) to get the newest Orange sources (and use setup.py or make).

comment:2 Changed 16 months ago by lanz

  • Status changed from accepted to closed
  • Resolution set to worksforme
Note: See TracTickets for help on using tickets.