You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Methods for serializing certain objects which are passed between models (i.e. atomic environments, structures, etc), or even models themselves, would be useful. The advantage of this over pickled objects is that they can be more human-readable (and I understand that pickled objects have some security risks associated with them).
One example application is that JSON objects are easily storable in certain database architectures. This might be relevant for e.g. FOOGA in the near future if we want to automate the process of training GP models for different datasets, as this would let us store them more easily.
In my development branch I've done this for the AtomicEnvironment object. There are ways we could standardize this or easily implement it across our codebase (e.g. by using Monty, which has an object type which allows for effortless JSON serialization of different Python objects).
The text was updated successfully, but these errors were encountered:
Good idea to serialize, would be nice to be able to print out attributes of the env/struc/gp objects. As for saving and storing entire gp models, pickle.dump(gp_model, gp_file) works well in practice.
stevetorr
changed the title
Serialization methods for various objects
Serialization and reprentation (__str__) methods for various objects
Sep 9, 2019
stevetorr
changed the title
Serialization and reprentation (__str__) methods for various objects
Serialization and reprentation ( e.g. __str__) methods for various objects
Sep 9, 2019
stevetorr
changed the title
Serialization and reprentation ( e.g. __str__) methods for various objects
Serialization and reprentation (e.g. __str__) methods for various objects
Sep 9, 2019
stevetorr
changed the title
Serialization and reprentation (e.g. __str__) methods for various objects
Serialization and representation (e.g. __str__) methods for various objects
Sep 9, 2019
Methods for serializing certain objects which are passed between models (i.e. atomic environments, structures, etc), or even models themselves, would be useful. The advantage of this over pickled objects is that they can be more human-readable (and I understand that pickled objects have some security risks associated with them).
One example application is that JSON objects are easily storable in certain database architectures. This might be relevant for e.g. FOOGA in the near future if we want to automate the process of training GP models for different datasets, as this would let us store them more easily.
In my development branch I've done this for the AtomicEnvironment object. There are ways we could standardize this or easily implement it across our codebase (e.g. by using Monty, which has an object type which allows for effortless JSON serialization of different Python objects).
The text was updated successfully, but these errors were encountered: