Giter Club home page Giter Club logo

ecg-qa's People

Contributors

jwoo5 avatar

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

Watchers

 avatar  avatar

ecg-qa's Issues

请问Quick Start->Run QA Experiments->Pre-process ECG-QA dataset中与映射脚本对应的/path/to/ecgqa是原始的数据集吗,我根据提示处理之后总是报以下错

(py310) zhu@UU:~/learn/fairseq-signals-master$ python ./fairseq_signals/data/ecg_text/preprocess/preprocess_ecgqa.py /home/zhu/learn/ecg-qa-master/ecgqa/mimic-iv-ecg
--dest /home/zhu/learn/ecg-qa-master/pre-process
--apply_paraphrase
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 829267/829267 [00:00<00:00, 5830287.43it/s]
train: 0%| | 0/829267 [00:00<?, ?it/s]
Traceback (most recent call last):
File "/home/zhu/learn/fairseq-signals-master/./fairseq_signals/data/ecg_text/preprocess/preprocess_ecgqa.py", line 195, in
main(args)
File "/home/zhu/learn/fairseq-signals-master/./fairseq_signals/data/ecg_text/preprocess/preprocess_ecgqa.py", line 104, in main
sample["ecg_path"] = sample_data["ecg_path"]
KeyError: 'ecg_path'

Error in Preprocessing

When I run the preprocess script, I encounter an error.

Traceback (most recent call last):
File "/data/work/TimeLLM/ecg-qa/preprocess_ecgqa.py", line 198, in
main(args)
File "/data/work/TimeLLM/ecg-qa/preprocess_ecgqa.py", line 109, in main
sample["answer"] = encode_answer(sample_data["answer"], classes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/work/TimeLLM/ecg-qa/preprocess_ecgqa.py", line 150, in encode_answer
idx = [classes[a] for a in answer if a != "none"]
~~~~~~~^^^
KeyError: 'late stage of myocardial infarction'

Replacing "late stage of myocardial infarction" with "old stage of myocardial infarction" in the file "ecgqa/ptbxl/train/110000.json" "ecgqa/ptbxl/valid/20000.json""ecgqa/ptbxl/test/20000.json" resolves the error.

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.