Open yuenshingyan opened 1 year ago
try scaling each column of your predictor matrix so that values are between 0 and 1.
try scaling each column of your predictor matrix so that values are between 0 and 1. The same error still occur.
try scaling each column of your predictor matrix so that values are between 0 and 1. The same error still occur.
I am also experiencing a similar error, please do you solve this problem
@BD-Sengoku, try setting the natural_gradient off
ngb = NGBClassifier(... natural_gradient = False .. )
as suggested at https://github.com/stanfordmlgroup/ngboost/pull/320#issuecomment-1477322945
I am just trying out NGB and the LinAlgError occured. It seems the matrix has a determinant of zero, according to this post https://stackoverflow.com/questions/10326015/singular-matrix-issue-with-numpy. I have attached the datasets that I used.
Code
Traceback
Complete error traceback
```python LinAlgError Traceback (most recent call last) Input In [103], inSpecs OS: Ubuntu 22.04.1 LTS x86_64 Host: G7 MD Kernel: 5.15.0-53-generic Uptime: 4 hours, 38 mins Packages: 2102 (dpkg), 19 (snap) Shell: bash 5.1.16 Resolution: 1920x1080 DE: GNOME 42.5 WM: Mutter Terminal: gnome-terminal CPU: 11th Gen Intel i7-11800H (16) @ GPU: NVIDIA GeForce RTX 3050 Ti Mobi GPU: Intel TigerLake-H GT1 [UHD Grap Memory: 10436MiB / 15780MiB
Datasets y_train.csv X_train.csv