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

Dimension mismatch #48

Open
ejoel-garcia opened this issue Aug 3, 2019 · 0 comments
Open

Dimension mismatch #48

ejoel-garcia opened this issue Aug 3, 2019 · 0 comments

Comments

@ejoel-garcia
Copy link

Hello there ! hope you're doing fine.

I was just trying to use the SPEC and Laplacian Score modules to de-noise a BoW (489 docs, 7895 terms) and got the following errors:

SPEC:
**File "", line 2, in
spectral_fs.spec(x)

File "C:\Users\Erick Garciaoliva\Anaconda3\lib\site-packages\skfeature\function\similarity_based\SPEC.py", line 74, in spec
l = LA.norm(F_hat)

File "C:\Users\Erick Garciaoliva\Anaconda3\lib\site-packages\numpy\linalg\linalg.py", line 2450, in norm
sqnorm = dot(x, x)

File "C:\Users\Erick Garciaoliva\Anaconda3\lib\site-packages\scipy\sparse\base.py", line 481, in mul
raise ValueError('dimension mismatch')

ValueError: dimension mismatch**

LP-Score:
**File "", line 1, in
lapscore = LaplacianScore(x)

File "", line 35, in LaplacianScore
t=np.matmul(np.matmul(Xt,D.toarray()),I)/np.matmul(np.matmul(np.transpose(I),D.toarray()),I)

ValueError: matmul: Input operand 0 does not have enough dimensions (has 0, gufunc core with signature (n?,k),(k,m?)->(n?,m?) requires 1)**

Maybe this has to do with the data type of the BoW ?

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

1 participant