Closed CwhGIS closed 2 years ago
Hi. Indeed, my previous solution wasn't good since it doesn't work when trying to unpickle the object. I am not sure right now how to solve this issue. I opened an issue in the featuretools github page (ATOM uses the featuretools package under the hood for these operations), see if someone there can help me. This is the link: https://github.com/alteryx/featuretools/issues/1942. I'll come back to you as soon as I know more.
It appears it's not doable to pickle custom primitives. Instead, I created a PR to add the operators that are failing to featuretools' standard primitives (https://github.com/alteryx/featuretools/pull/1948) . If it's accepted, I can change the code in ATOM to fix the issue. Thus this issue will be fixed after the next release of featuretools. In the mean time, I suggest you don't use the sqrt
, log
, sin
, cos
and tan
operators. The others should work fine.
Update: this error has been solved in the newest release v4.13.0.
Contribution guidelines
Description
I saved the model with save_data=True/False, but when I reloaded the file this error occurred:
AttributeError: Can't get attribute 'sqrt' on <module 'featuretools.primitives.base.transform_primitive_base' from '/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/featuretools/primitives/base/transform_primitive_base.py'>
Expected behaviour
No response
Actual behaviour
No response
Steps to reproduce
No response
Python and package version