Coder Social home page Coder Social logo

Comments (6)

dpodvyaznikov avatar dpodvyaznikov commented on August 28, 2024

Hi, @Hunter0904 !

Predefined pipelines that you are using were designed to demonstrate how the library works on two specific tasks with specific datasets. If you take a look at dirichlet_predict_pipeline's source code, you'd see that fmt parameter in load action is set to 'wfdb', because the pipeline was developed to work with PhysioNet2017 Challenge data.

You can use our pipelines as an example to develop those suited for your needs. E.g., to solve your current issue you can just replace 'wfdb' to 'edf' in dirichlet_predict_pipeline.

from cardio.

Hunter0904 avatar Hunter0904 commented on August 28, 2024

@dpodvyaznikov Thank for your answer.
But I don't have enough data to train new 'edf' model.
Is there a way to change the 'edf' file to 'wfdb' format ?
then I can use the same model to predict.

from cardio.

dpodvyaznikov avatar dpodvyaznikov commented on August 28, 2024

You still can use the model you've trained with dirichlet_train_pipeline.
The issue is in the way dirichlet_predict_pipeline tries to load the data. Since it has fmt='wfdb' in its load action, it tries to open file sample.hea instead of sample.edf. Since there is no such file, you get the error.
As I've said before, if you change fmt parameter to 'edf' in source code of dirichlet_predict_pipeline, you'll be able to run inference on edf files. Or you can make it a function argument and pass it directly when creatin pipeline.

from cardio.

Hunter0904 avatar Hunter0904 commented on August 28, 2024

I will try it ~
very appreciate~thanks a lot

from cardio.

dpodvyaznikov avatar dpodvyaznikov commented on August 28, 2024

I'll close this issue for now.

from cardio.

Hunter0904 avatar Hunter0904 commented on August 28, 2024

I had tried this. It's worked.
thanks a lot~~~

from cardio.

Related Issues (20)

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.