Skip to content

Remove sparse/dense eigenvector warnings #95

@dmdunla

Description

@dmdunla

The UserWarnings below appear during testing. We should remove the warnings, as users most likely do not really care about this. The default behavior should be that the right number of eigenvectors are computed, whether sparse or dense routines are used.

tests/test_tucker_als.py::test_tucker_als_tensor_default_init
  C:\Users\dmdunla\dev\github.com\pyttb\pyttb\tensor.py:793: UserWarning: Greater than or equal to tensor.shape[n] - 1 eigenvectors requires cast to dense to solve
    warnings.warn(

pyttb/ktensor.py::pyttb.ktensor.ktensor.nvecs
  C:\Users\dmdunla\dev\github.com\pyttb\pyttb\ktensor.py:1298: UserWarning: Greater than or equal to ktensor.shape[n] - 1 eigenvectors requires cast to dense to solve
    warnings.warn(

Metadata

Metadata

Labels

doingActively being worked oninvalidThis doesn't seem right

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions