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

problem #1

Open
Richard-hard opened this issue Feb 3, 2023 · 0 comments
Open

problem #1

Richard-hard opened this issue Feb 3, 2023 · 0 comments

Comments

@Richard-hard
Copy link

following your guidance, i get the dataset successfully, but i have a problem, it confused me a lot . as follows:

D:\Anaconda\envs\py36\python.exe D:\Desktop\ecg_learn\ecg-classification-master\python\run_train_SVM.py
Traceback (most recent call last):
File "D:\Desktop\ecg_learn\ecg-classification-master\python\run_train_SVM.py", line 54, in
main(multi_mode, 90, 90, do_preprocess, use_weight_class, maxRR, use_RR, norm_RR, compute_morph, oversamp_method, pca_k, feature_selection, do_cross_val, C_value, gamma_value, reduced_DS, leads_flag)
File "D:\Desktop\ecg_learn\ecg-classification-master\python\train_SVM.py", line 198, in main
scaler.fit(tr_features)
File "D:\Anaconda\envs\py36\lib\site-packages\sklearn\preprocessing_data.py", line 730, in fit
return self.partial_fit(X, y, sample_weight)
File "D:\Anaconda\envs\py36\lib\site-packages\sklearn\preprocessing_data.py", line 768, in partial_fit
force_all_finite='allow-nan', reset=first_call)
File "D:\Anaconda\envs\py36\lib\site-packages\sklearn\base.py", line 421, in _validate_data
X = check_array(X, **check_params)
File "D:\Anaconda\envs\py36\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f
return f(*args, **kwargs)
File "D:\Anaconda\envs\py36\lib\site-packages\sklearn\utils\validation.py", line 729, in check_array
context))
ValueError: Found array with 0 sample(s) (shape=(0, 59)) while a minimum of 1 is required by StandardScaler.
Runing train_SVM.py!
Loading pickle: ../../dataset/mitdb/m_learning/scikit/features/w_90_90_DS1_rm_bsline_maxRR_u-lbp_MLII.p...
Loading pickle: ../../dataset/mitdb/m_learning/scikit/features/w_90_90_DS2_rm_bsline_maxRR_u-lbp_MLII.p...
-------- []

Process finished with exit code 1

i hope i can get your help

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

1 participant