Steffen Kaiser describes how to build SKLearn python libraries for AWS Lambda here: https://medium.com/@stekaiser/cba9355b44e9
This repository contains up-to-date commands to repeat these steps.
If you simply want to add the sklearn libraries to your project:
docker run -v $(pwd):/outputs -it markmarijnissen/sklearn-build:latest
cp output.zip **LAMBDA_PROJECT_DIR**
unzip output.zip -d .
If you want to change the script:
- Tweak the scripts.
- Build a docker image:
docker build -t sklearn-build .
- Run it:
docker run -v $(pwd):/outputs -it sklearn-build:latest
- Copy
output.zip
to your directory. - Unzip
output.zip
- pandas is not installed (!)