Hello!
I was following your blog, and I have downloaded the ipnb files and I am using Windows(Anaconda). I could go no further from the cell with the following code:-
ham_sample = np.array([train_test_split(o) for o in ham_path])
I got the following error when I tried running;
ValueError Traceback (most recent call last)
in
----> 1 ham_sample = np.array([train_test_split(o) for o in ham_path])
in (.0)
----> 1 ham_sample = np.array([train_test_split(o) for o in ham_path])
~\Anaconda3\lib\site-packages\sklearn\model_selection_split.py in train_test_split(*arrays, **options)
2098 n_samples = _num_samples(arrays[0])
2099 n_train, n_test = _validate_shuffle_split(n_samples, test_size, train_size,
-> 2100 default_test_size=0.25)
2101
2102 if shuffle is False:
~\Anaconda3\lib\site-packages\sklearn\model_selection_split.py in _validate_shuffle_split(n_samples, test_size, train_size, default_test_size)
1780 'resulting train set will be empty. Adjust any of the '
1781 'aforementioned parameters.'.format(n_samples, test_size,
-> 1782 train_size)
1783 )
1784
ValueError: With n_samples=0, test_size=0.25 and train_size=None, the resulting train set will be empty. Adjust any of the aforementioned parameters.
Hello!
I was following your blog, and I have downloaded the ipnb files and I am using Windows(Anaconda). I could go no further from the cell with the following code:-
ham_sample = np.array([train_test_split(o) for o in ham_path])
I got the following error when I tried running;
ValueError Traceback (most recent call last)
in
----> 1 ham_sample = np.array([train_test_split(o) for o in ham_path])
in (.0)
----> 1 ham_sample = np.array([train_test_split(o) for o in ham_path])
~\Anaconda3\lib\site-packages\sklearn\model_selection_split.py in train_test_split(*arrays, **options)
2098 n_samples = _num_samples(arrays[0])
2099 n_train, n_test = _validate_shuffle_split(n_samples, test_size, train_size,
-> 2100 default_test_size=0.25)
2101
2102 if shuffle is False:
~\Anaconda3\lib\site-packages\sklearn\model_selection_split.py in _validate_shuffle_split(n_samples, test_size, train_size, default_test_size)
1780 'resulting train set will be empty. Adjust any of the '
1781 'aforementioned parameters.'.format(n_samples, test_size,
-> 1782 train_size)
1783 )
1784
ValueError: With n_samples=0, test_size=0.25 and train_size=None, the resulting train set will be empty. Adjust any of the aforementioned parameters.