You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The least populated class in y has only 1 member, which is too few. The minimum number of groups for any class cannot be less than 2.
Traceback (most recent call last):
File "C:\Users\User\anaconda3\lib\site-packages\supervised\base_automl.py", line 1095, in _fit
trained = self.train_model(params)
File "C:\Users\User\anaconda3\lib\site-packages\supervised\base_automl.py", line 380, in train_model
mf.train(results_path, model_subpath)
File "C:\Users\User\anaconda3\lib\site-packages\supervised\model_framework.py", line 233, in train
learner.fit(
File "C:\Users\User\anaconda3\lib\site-packages\supervised\algorithms\knn.py", line 50, in fit
X1, _, y1, _ = train_test_split(
File "C:\Users\User\anaconda3\lib\site-packages\sklearn\model_selection_split.py", line 2583, in train_test_split
train, test = next(cv.split(X=arrays[0], y=stratify))
File "C:\Users\User\anaconda3\lib\site-packages\sklearn\model_selection_split.py", line 1689, in split
for train, test in self._iter_indices(X, y, groups):
File "C:\Users\User\anaconda3\lib\site-packages\sklearn\model_selection_split.py", line 2078, in _iter_indices
raise ValueError(
ValueError: The least populated class in y has only 1 member, which is too few. The minimum number of groups for any class cannot be less than 2.
The text was updated successfully, but these errors were encountered:
Error for 55_NearestNeighbors
The least populated class in y has only 1 member, which is too few. The minimum number of groups for any class cannot be less than 2.
Traceback (most recent call last):
File "C:\Users\User\anaconda3\lib\site-packages\supervised\base_automl.py", line 1095, in _fit
trained = self.train_model(params)
File "C:\Users\User\anaconda3\lib\site-packages\supervised\base_automl.py", line 380, in train_model
mf.train(results_path, model_subpath)
File "C:\Users\User\anaconda3\lib\site-packages\supervised\model_framework.py", line 233, in train
learner.fit(
File "C:\Users\User\anaconda3\lib\site-packages\supervised\algorithms\knn.py", line 50, in fit
X1, _, y1, _ = train_test_split(
File "C:\Users\User\anaconda3\lib\site-packages\sklearn\model_selection_split.py", line 2583, in train_test_split
train, test = next(cv.split(X=arrays[0], y=stratify))
File "C:\Users\User\anaconda3\lib\site-packages\sklearn\model_selection_split.py", line 1689, in split
for train, test in self._iter_indices(X, y, groups):
File "C:\Users\User\anaconda3\lib\site-packages\sklearn\model_selection_split.py", line 2078, in _iter_indices
raise ValueError(
ValueError: The least populated class in y has only 1 member, which is too few. The minimum number of groups for any class cannot be less than 2.
The text was updated successfully, but these errors were encountered: