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
I am creating a class that inherits from Metric. That class has an attribute which is a data ingestor. I'm looking to serialize and deserialize the Experiment in case of system restarts. To do this, I added the custom Metric class to json_encoder_registry via RegistryBundle but it failed with the following error when trying to save_experiment.
JSONEncodeError: Object <my_module.MyDataIngestor object at 0x19cafe110> passed to object_to_json (of type <class 'my_module.MyDataIngestor'>, module: my_module) is not registered with a corresponding encoder in ENCODER_REGISTRY.
How do I handle serialization and deserialization for the data ingestor class MyDataIngestor?
I am creating a class that inherits from Metric. That class has an attribute which is a data ingestor. I'm looking to serialize and deserialize the Experiment in case of system restarts. To do this, I added the custom Metric class to json_encoder_registry via RegistryBundle but it failed with the following error when trying to
save_experiment
.JSONEncodeError: Object <my_module.MyDataIngestor object at 0x19cafe110> passed to
object_to_json
(of type <class 'my_module.MyDataIngestor'>, module: my_module) is not registered with a corresponding encoder in ENCODER_REGISTRY.How do I handle serialization and deserialization for the data ingestor class
MyDataIngestor
?Here is outline of the code:
The text was updated successfully, but these errors were encountered: