Open sutkss opened 3 years ago
The result of KSVD algorithm may contain atoms which has 0 coefficient for all samples. The cause is due to: https://github.com/hacarus/spm-image/blob/development/spmimage/decomposition/ksvd.py#L88-L89
Replace such all 0 coef atoms with right-singular vectors of SVD for error Y - WH.
Issue Description
The result of KSVD algorithm may contain atoms which has 0 coefficient for all samples. The cause is due to: https://github.com/hacarus/spm-image/blob/development/spmimage/decomposition/ksvd.py#L88-L89
Replace such all 0 coef atoms with right-singular vectors of SVD for error Y - WH.