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

How should I predict on my own data? #46

Closed
xiaoshijiu1999 opened this issue Oct 11, 2021 · 2 comments
Closed

How should I predict on my own data? #46

xiaoshijiu1999 opened this issue Oct 11, 2021 · 2 comments

Comments

@xiaoshijiu1999
Copy link

I've trained a u-sleep model with some data sets. I wonder how this model can be used to predict a single PSG data file.

@perslev
Copy link
Owner

perslev commented Oct 12, 2021

Hi!

You can use the ut predict_one script. E.g. if your trained model is in folder ./my_project and you want to predict on file ./path/to/file.edf using two sets of channels (C3-A2 with EOG-L and C4-A2 with EOG-L):

ut predict_one -f './path/to/file.edf' -o './output_file.ids' --channels 'C3-A2++EOG-L' 'C4-A1++EOG-L' --project_dir './my_project' --num_GPUs=1

Please se ut predict_one --help for details.

Cheers,
Mathias

@xiaoshijiu1999
Copy link
Author

xiaoshijiu1999 commented Oct 12, 2021 via email

@perslev perslev closed this as completed Oct 12, 2021
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

2 participants