-
Notifications
You must be signed in to change notification settings - Fork 34
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
bhvRDM for representations in CNNs #1
Comments
Very nice question! |
Hi, Arjun! I just updated NeuroRA! If you want to put the nodes' values of each layer in CNN, I recommend that you can let the shape of the data_ly_i as [n_conditions, n_nodes, 1] for layer i in a CNN model as the input for bhvRDM function. like: Hope this help! If you have any other questions, you can ask me. |
Hi Zitong! Thank you very much for your prompt reply. I was very impressed by how quickly you responded to my question and updated the library -- Thanks a ton! I'm sorry, I do not fully understand: Thanks once again! :) |
I think my suggestions above can work. |
Maybe you are puzzled about how to put the data of a CNN into bhvRDM? For example, in a certain CNN, its layer i has 64 feature maps (size of each feature map is 128 by 128). You can spread this 64 by 128 by 128 array into a vector which shape will be [1048576]. So n_nodes=1048576 here, and as the suggestion I told yesterday, the shape of the data as the input of layer i in certain CNN for RDM calculation should be [n_conditions, n_nodes, 1]. Then use |
Oh I see now. Sorry, I had missed line 135. Thanks so much, Zitong! |
First of all, thank you so much for making this work open source! It is much appreciated! :)
I am interested in calculating RDMs for representations learned by neural networks. For this, I was looking at your bhvRDM function, since the description of the function includes 'This function can also be used to calculate the RDM for computational simulation data'.
My understanding was that for RDMs, correlation distance (i.e.
1 - r
where r refers to the Pearson correlation) was used. However, online 84
(here), I am not sure why you are simply computing the absolute distance. Can you please help me out?Thanks once again for your phenomenal work!
The text was updated successfully, but these errors were encountered: