Closed yuenshingyan closed 2 years ago
Code
ngb = NGBClassifier(verbose=False) ngb.fit(X_train, y_train)
Traceback
Specs 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
Dataset y_train.csv X_train.csv
your y values are all 0s.
y
ValueError: could not broadcast input array from shape (0,15) into shape (1,15) occurred when I tried to train a NGBClassifier.
Code
Traceback
Complete error traceback
```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) Input In [177], 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
Dataset y_train.csv X_train.csv