def from_dictionary(cls, arguments, entityset, dependencies, primitives_deserializer): base_features = [ dependencies[name] for name in arguments['base_features'] ] relationship_path = [ Relationship.from_dictionary(r, entityset) for r in arguments['relationship_path'] ] parent_entity = relationship_path[0].parent_entity relationship_path = RelationshipPath([(False, r) for r in relationship_path]) primitive = primitives_deserializer.deserialize_primitive( arguments['primitive']) use_previous_data = arguments['use_previous'] use_previous = use_previous_data and Timedelta.from_dictionary( use_previous_data) where_name = arguments['where'] where = where_name and dependencies[where_name] return cls(base_features=base_features, parent_entity=parent_entity, primitive=primitive, relationship_path=relationship_path, use_previous=use_previous, where=where, name=arguments['name'])
def from_dictionary(cls, arguments, entityset, dependencies, primitives_deserializer): base_feature = dependencies[arguments['base_feature']] relationship = Relationship.from_dictionary(arguments['relationship'], entityset) child_entity = relationship.child_entity return cls(base_feature=base_feature, child_entity=child_entity, relationship=relationship, name=arguments['name'])
def from_dictionary(cls, arguments, entityset, dependencies, primitives_deserializer): base_feature = dependencies[arguments['base_feature']] relationship_path = [ Relationship.from_dictionary(r, entityset) for r in arguments['relationship_path'] ] child_entity = relationship_path[0].child_entity return cls(base_feature, child_entity, relationship_path=relationship_path)