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

Would you mind uploading the example data used in "Data preparation" in Tutorial.ipynb? #1

Open
gomingchen opened this issue Feb 18, 2022 · 2 comments

Comments

@gomingchen
Copy link

Hi there,

Excellent work! I am trying to use this method to study the learning process of echolocating bats on a two-choice platform. I ran the Tutorial.ipynb, but it's stuck at the lack of example data in "Data preparation". Would you mind uploading the data? Or where else can I find it?

Thank you!
Best,
Chen

@gavinmischler
Copy link
Contributor

gavinmischler commented May 25, 2022

@gomingchen I don't think he'll be able to upload the data itself since it comes from patients. If you want to mimic it with random numbers so the rest of the code will run, it would look like this:

trial_lengths = [6047, 5053, 6500] # the first three trial lengths in samples
# Y is a list of length num_trials, each containing the responses by all electrodes (time * electrode)
channels = 220
Y = [torch.from_numpy(np.random.rand(L, channels)) for L in trial_lengths]
# X should be a list of the same length as Y containing the spectrogram (time * frequency) for each trial's stimulus
freq_bins = 64
X = [torch.from_numpy(np.random.rand(L, freq_bins)) for L in trial_lengths]

@gomingchen
Copy link
Author

gomingchen commented May 28, 2022 via email

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