-
Notifications
You must be signed in to change notification settings - Fork 45
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
Utility functions to save and load instances of Group and Representations #74
Comments
Hi @Danfoa To efficiently store groups, I implemented this feature (which I also use for caching inside the library). Each group has a method The only problem you have left is accessing the In other words, to cache an instance However, I agree the library should include a nice and simple method which hides away these details and can be used to simply cache a representation. Let me know if this helps! Best, |
Hi @Gabri95, Yes, this is precisely what I was looking for, and I agree there should be a method for this. A custom serialization and deserialization method can enable pickle saving and loading. Thanks for the swift answer. Please update if you are taking on this effort; otherwise, whenever I have time, I could try to give it a go. |
Hi @Gabri95,
I have been facing some (perhaps unnecessary) issues in saving and loading instances of classes from ESCNN.
Say I want to generate a dataset of Equivariant dynamical systems, I would like to save in files the actual symmetry group (subgroup) and the representations of each of the measurements taken.
The representations are ok to save using the irreps ids and the change of basis, but the group itself it's proven a bit harder to save and load elegantly. The group and representation classes are not serializable and thus cannot be pickled. But storing the entire object also seems unnecessary.
I am assuming you have already faced that issue, or if not, that you might have a good idea of how to do this as quickly. Any ideas?
Perhaps I can build (at some point) the protocol for storing and loading this instances
PS: I will answer all other threads we have active after ICLR. Sorry for the delay.
The text was updated successfully, but these errors were encountered: