Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when concept space is too sparse #2

Open
sgt101 opened this issue Sep 28, 2010 · 2 comments
Open

Crash when concept space is too sparse #2

sgt101 opened this issue Sep 28, 2010 · 2 comments

Comments

@sgt101
Copy link

sgt101 commented Sep 28, 2010

Hi,

I think this is happening because my study is too sparse and nothing is being successfully extracted.

Some specific diagnostic error would be good as well as the dump.

Warning:
Sorry, an internal error occurred. Could you please send the authors the text below and a brief note about what you were doing? Thanks!
Traceback (most recent call last):
File "/home/sgt101/luminoso/luminoso/window.py", line 301, in analyze
results = self.study_dir.analyze()
File "/home/sgt101/luminoso/luminoso/study.py", line 704, in analyze
results = study.analyze()
File "/home/sgt101/luminoso/luminoso/study.py", line 432, in analyze
docs, projections, Sigma = self.get_eigenstuff()
File "/home/sgt101/luminoso/luminoso/study.py", line 310, in get_eigenstuff
theblend, study_concepts = self.get_blend()
File "/home/sgt101/luminoso/luminoso/study.py", line 246, in get_blend
return self.get_assoc_blend()
File "/home/sgt101/luminoso/luminoso/study.py", line 289, in get_assoc_blend
doc_matrix = self.get_documents_assoc()
File "/home/sgt101/luminoso/luminoso/study.py", line 242, in get_documents_assoc
return divisi2.SparseMatrix.square_from_named_entries(entries).squish()
File "/usr/local/lib/python2.6/dist-packages/csc/divisi2/sparse.py", line 449, in square_from_named_entries
return SparseMatrix.square_from_named_lists(_zip(_tuples))
TypeError: square_from_named_lists() takes at least 3 arguments (0 given)

@kcarnold
Copy link
Member

kcarnold commented Oct 7, 2010

The problem was that no concepts were above the cutoff. I've patched the symptom in both Luminoso and Divisi2, but the real solution is to make the cutoff relative, which will have to wait.

@sgt101
Copy link
Author

sgt101 commented Oct 7, 2010

It's an easy work around when you know how - just drop your concept threshold or enrich your data to generate some concepts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants