'Load features created by custom primitives

I created some features base on custom primitives with help of featuretools and saved them into memory. Then I want load them with featuretools.load_features function. But I get the error RuntimeError: Primitive "LastTime" in module "__main__" not found where LastTime is my custom primitive name.

So my question is how to properly load my custom features or to let featuretools know that such primitives exist ?

I have searched over documentation and issues on GitHub and didn't find proper information about it



Solution 1:[1]

Before loading in the saved features, re-run the code that defined the custom primitive.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Roy Wedge