I have a custom scikit-learning model very simple, it works locally but fails when i try to run it in lambda aws.
The error is the folowing: { "errorMessage": "Can't get attribute 'Modelito' on <module 'main' from '/var/runtime/bootstrap.py'>", "errorType": "AttributeError", "requestId": "c1d83b5f-fcaa-4877-9267-255e07c0bb9e", "stackTrace": [ " File "/var/task/lambda_function.py", line 165, in handler\n model = pickle.load(file)\n" ] }
I have the lambda function and inside of it i paste the custom class and then i try to unpickle the model but it fails! The same setting works locally. I try many diferent things but maybe i'm missing something. Some idea?