SKLearn model inference 'Please provide a model_fn implementation.' errors #3942
Unanswered
tom-whitehead
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to deploy a model from Sagemaker script mode, however every time I try to create an endpoint the logs include mysterious errors saying
ClientError: Please provide a model_fn implementation.
I have implementedmodel_fn
as you will see below.The notebook looks like this:
And my inference.py looks like this:
The code folder structure is like this:
I've been though the documentation and can't figure out what I am doing wrong in this case. If anyone could help I would be very grateful.
I've tried playing around with the folder architecture, but to no avail.
Beta Was this translation helpful? Give feedback.
All reactions