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
ValueError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_1920/1983190910.py in
4
5 _, classes = np.unique(diagnosis, return_inverse=True)
----> 6 iter_for_prediction = cv.split(timeseries, classes)
7
8 for index, (train_index, test_index) in enumerate(iter_for_prediction):
~\anaconda3\lib\site-packages\sklearn\model_selection_split.py in split(self, X, y, groups)
1791 to an integer.
1792 """
-> 1793 y = check_array(y, ensure_2d=False, dtype=None)
1794 return super().split(X, y, groups)
1795
Running predictions: with atlas: AAL
ValueError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_1920/1983190910.py in
4
5 _, classes = np.unique(diagnosis, return_inverse=True)
----> 6 iter_for_prediction = cv.split(timeseries, classes)
7
8 for index, (train_index, test_index) in enumerate(iter_for_prediction):
~\anaconda3\lib\site-packages\sklearn\model_selection_split.py in split(self, X, y, groups)
1791 to an integer.
1792 """
-> 1793 y = check_array(y, ensure_2d=False, dtype=None)
1794 return super().split(X, y, groups)
1795
~\anaconda3\lib\site-packages\sklearn\utils\validation.py in inner_f(*args, **kwargs)
61 extra_args = len(args) - len(all_args)
62 if extra_args <= 0:
---> 63 return f(*args, **kwargs)
64
65 # extra_args > 0
~\anaconda3\lib\site-packages\sklearn\utils\validation.py in check_array(array, accept_sparse, accept_large_sparse, dtype, order, copy, force_all_finite, ensure_2d, allow_nd, ensure_min_samples, ensure_min_features, estimator)
724 n_samples = _num_samples(array)
725 if n_samples < ensure_min_samples:
--> 726 raise ValueError("Found array with %d sample(s) (shape=%s) while a"
727 " minimum of %d is required%s."
728 % (n_samples, array.shape, ensure_min_samples,
ValueError: Found array with 0 sample(s) (shape=(0,)) while a minimum of 1 is required.
The text was updated successfully, but these errors were encountered: