agosztolai / RVGP

A generalised Gaussian process method for learning vector fields over non-Euclidean domains. Particularly useful for EEG data analysis and to regularise vector fields using global structures.
16 stars 2 forks source link

ImportError: cannot import name 'project_to_local_frame' from 'RVGP.geometry' #3

Open NevVerVer opened 3 weeks ago

NevVerVer commented 3 weeks ago

When I am trying to run examples/eeg_example/run_eeg_vector_field_interp.py script, it throughts ImportError: cannot import name 'project_to_local_frame' from 'RVGP.geometry'.

In geometry.py there is project_to_manifold and express_in_local_frame functions, but there isn't any project_to_local_frame. What function should be used instead of project_to_local_frame?

agosztolai commented 3 weeks ago

Hello,

I have added the project_to_local_frame function to the eeg_utils.py file. The main RVGP code no longer needs it, so we removed it, but the EEG example was still not synchronised.

I also realized that the EEG data was not uploaded to the repo. If you want to run the EEG example, please bear with me until I find the collaborator who analysed the data.

NevVerVer commented 3 weeks ago

Thank you for the rapid answer! I am particularly interested in application of your method to EEG data. So, I am looking forward to your collaborator to upload the data to reproduce EEG results :) I suppose that in principle any EEG data can be used for in you method, so I'll also try to run it with some random data from open datasets. Thanks again!

peach-lucien commented 3 weeks ago

Hi Nev! the EEG-data I will upload is already converted into vector field format. This was a process that was performed using C-NEM in Matlab. I will need a couple of days to upload some of this data as an example and ensure this is all working smoothly. However, I imagine you are also interested in actually constructing the vector fields from your raw EEG data? not just interpolating low-density EEG?

peach-lucien commented 3 weeks ago

Hi Nev - I have now updated the EEG example to download some example files from the Harvard data verse. Let me know if you have any further trouble! Note that the examples are already in vector-field format (as a function of time).