Example #1
0
 def __init__(self, features_dict):
     self.features_dict = features_dict
     self._check_schema_version()
     self.entityset = deserialize_es(features_dict["entityset"])
     self._deserialized_features = {}  # name -> feature
     primitive_deserializer = PrimitivesDeserializer()
     primitive_definitions = features_dict["primitive_definitions"]
     self._deserialized_primitives = {
         k: primitive_deserializer.deserialize_primitive(v)
         for k, v in primitive_definitions.items()
     }
 def __init__(self, features_dict):
     self.features_dict = features_dict
     self._check_schema_version()
     self.entityset = deserialize_es(features_dict["entityset"])
     self._deserialized_features = {}  # name -> feature
     self._primitives_deserializer = PrimitivesDeserializer()