mondejar / ecg-classification

Code for training and test machine learning classifiers on MIT-BIH Arrhyhtmia database
GNU General Public License v3.0
528 stars 193 forks source link

Labels name error #12

Open digitaShadow opened 5 years ago

digitaShadow commented 5 years ago

While running the run_train_svm.py file there is an error that occurs due to a file named load_MITBIH.py there the error which occurs is that the label given as 'w' is not found as the training set is DS_1.csv and there is no such label as w in that file.

Looking for response.

Error: writing pickle: C:/Users/qasim/Desktop/jibran/ecg-classification-master/python/mit_db/features/w_90_90_DS1_rm_bsline_maxRR_u-lbp_MLII.p... Traceback (most recent call last): File "C:/Users/qasim/Desktop/jibran/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 "C:\Users\qasim\Desktop\jibran\ecg-classification-master\python\train_SVM.py", line 165, in main maxRR, use_RR, norm_RR, compute_morph, db_path, reduced_DS, leads_flag) File "C:\Users\qasim\Desktop\jibran\ecg-classification-master\python\load_MITBIH.py", line 434, in load_mit_db f = open(features_labels_name, 'w') IOError: [Errno 2] No such file or directory: 'C:/Users/qasim/Desktop/jibran/ecg-classification-master/python/mit_db/features/w_90_90_DS1_rm_bsline_maxRR_u-lbp_MLII.p'