aws-samples / serverless-ai-workshop

This workshop demonstrates two methods of machine learning inference for global production using AWS Lambda and Amazon SageMaker
MIT No Attribution
57 stars 23 forks source link

Joblib deprecation and trimming down the layer size. #6

Open pbrao opened 4 years ago

pbrao commented 4 years ago

Issue #, if available:

Description of changes:

  1. Joblib has been deprecated from sklearn, so import it directly.
  2. The current layer is about 54MB after using 7zip, which is too large. Need to delete the "tests" and "pycache" directories prior to 7zip which makes it about 40MB.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.