Conversation
speech_decoding/constants.py
Outdated
| import numpy as np | ||
|
|
||
| # assert torch.cuda.is_available(), "Training without GPU is not supported." | ||
| DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu") |
There was a problem hiding this comment.
This really shouldn't be hardcoded, unless for some reason it's not possible to run the code without a GPU (being too slow doesn't count). If you need to disable the GPU then that should be a flag.
There was a problem hiding this comment.
Understand. I've put back device and bar_format to how it was in tidy.
| # NOTE: I'm using GPU on my machine so heavily on other project that I can't use | ||
| # device = "cpu" | ||
|
|
||
| BRAIN_RESAMPLE_RATE = 120 |
There was a problem hiding this comment.
Why were these added to constants.py instead of being in the config as before?
There was a problem hiding this comment.
I thought those that are not hyperparameters and shouldn't be changed could be in constants.py?
There was a problem hiding this comment.
I see. I think in that case it should be OK (Python doesn't have any recommended way of dealing with this and constants.py is one solution) - but if the code can be run on CPU then definitely DEVICE should not be there and code should be device-agnostic.
|
@Kaixhin After doing some visualizations with Brennan, I think the dataset class is not doing anything really wrong. (except that I cannot find the relative relationship of word and EEG onsets) But,
Will be posting the loss curve for current version later. |
Thanks for checking, good to note, but also I think your assumptions seem reasonable.
To a non-expert eye (me), I can't tell any channels are good or bad 😕 Unless the paper said otherwise, I think they kept all channels, and expect the DL model to just ignore noisy ones? Certainly a subject-specific layer could do that.
Looking very carefully, the horizontal bands seem similar (freq constant over time, makes sense), but I can see differences in the vertical bands, so I think it's OK. |
|
The scale of channel 48 of subject 1 after segmenting is thousands, while others are tens. |
Ah, this seems like it would be normal practice from an ML perspective. If the paper doesn't explicitly say otherwise, probably we should try this? |
|
CodeRabbit test |
No description provided.