Coder Social home page Coder Social logo

ecg-diagnosis's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ecg-diagnosis's Issues

Error in preprocess.py

dxs = [dx_dict.get(code, '') for code in row['dx'].split(',')]

AttributeError: 'int' object has no attribute 'split'

Any help will be appreciate. Thanks

有关shap_value的问题

您好楼主,我在执行shap_value.py这个文件时,当运行到y.append(result[:,i].sum())这一步时出现错误,提示too many indices for array: array is 1-dimensional, but 2 were indexed,请问您有出现过这个原因吗

关于代码运行的问题

您好,麻烦问下在运行python baselines.py --data-dir data/CPSC --classifier LR的时候,您遇到过Not enough beats to compute heart rate.这样的异常么

执行baseline.py时出现下述问题

执行baseline.py时出现下述问题,不知楼主可否解答一下。

环境按照readme里面的重新配置的

File "baselines.py", line 53, in
df_X = generate_features_csv(features_csv, data_dir, patient_ids)
File "baselines.py", line 35, in generate_features_csv
ecg_features.append(extract_features(ecg_data))
File "/pdpd_workspace/workspace/test/ecg-diagnosis-master/expert_features.py", line 62, in extract_features
all_features += extract_channel_features(channel)
File "/pdpd_workspace/workspace/test/ecg-diagnosis-master/expert_features.py", line 54, in extract_channel_features
return stats_features + wavelet_features + hos_features
ValueError: operands could not be broadcast together with shapes (7,) (938,)

question about `output_list`, `labels_list` and `scheduler.step()` in `main.py`

https://github.com/onlyzdd/ecg-diagnosis/blob/dfa9033d5ae7be135db63ff567e66fdb2b86d76d/main.py#L45C1-L47C23

Hi, I have the question about the above code in main.py. What is the role of labels_list and output_list here? I know in evaluate function, these two variables is to compute the F1 score. But in the train function, it seems that these two variables are not needed.

Another question is why the scheduler.step() is commented here. is this a little mistake?

Looking forward to your answer, thank you!

Unable to duplicate the original paper's results

Hello.... I am a new graduate student interested in your work. I was trying to duplicate the results you have on your paper. I ran the main.py following your Readme file, but the resulting F1 scores seem very low. I am curious as to how I should set the parameters or arguments to have the same results with yours. Thank you.

Screenshot from 2023-05-15 14-29-57

有关于十折交叉验证的问题

作者您好,我在您发表的论文《Interpretable deep learning for automatic diagnosis of 12-lead electrocardiogram》补充材料中的Training and Evaluation部分看到您提到应用了十折交叉验证的方法(一共进行十轮实验,每轮都将8fold用于训练,1fold用来验证,1fold用于测试,最后取10轮的平均值作为结果),但是我在代码中没有看到相应的实现,不知道是不是我理解错了(我所看到的是只进行了一轮划分),希望能得到您的回复,万分感谢。

Testing new data

Hey,
When I am done training the DNN model, what should I do in order to fit the code for new testing data?
I want to use the trained model only for testing- without validation and traninig folds.

Thanks,
Nadav.

关于Interpretation运行的问题

您好,我在执行完Preprocessing,Baselines,Deep model这三步的指令之后,执行Interpretation这一步的指令,出现了'No such file or directory: 'shap/shap1-CPSC\A0001.png''的错误信息。我的shao包的版本安装的是0.38.1的,请问可能是什么问题导致了这个错误呢?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.