Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting this error..please help #5

Open
Pranjali87 opened this issue May 25, 2022 · 1 comment
Open

Getting this error..please help #5

Pranjali87 opened this issue May 25, 2022 · 1 comment

Comments

@Pranjali87
Copy link

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.

@KamalakerDadi
Copy link
Owner

Please provide a reproducible script such that I can see where the error is?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants