painless machine learning in production
play

Painless machine learning in production H. Chase Stevens Principal - PowerPoint PPT Presentation

Painless machine learning in production H. Chase Stevens Principal Data Science Engineer, Boston, MA chase@chasestevens.com @hchasestevens Europython 2020 Painless machine learning in production Painless machine learning in


  1. Painless machine learning in production H. Chase Stevens Principal Data Science Engineer, Boston, MA chase@chasestevens.com @hchasestevens Europython 2020

  2. “Painless machine learning in production”

  3. “Painless machine learning in production” “Painless machine learning in production”

  4. “Painless machine learning in production” “Painless machine learning in production” “Painless machine learning in production ”

  5. “Painless machine learning in production” “Painless machine learning in production” “Painless machine learning in production ” “ Painless machine learning in production”

  6. “Painless machine learning in production” “Painless machine learning in production” “Painless machine learning in production ” “ Painless machine learning in production”

  7. “Painless machine learning in production” “Painless machine learning in production” “Painless machine learning in production ” “ Painless machine learning in production”

  8. “Painless machine learning in production” “Painless machine learning in production” “Painless machine learning in production ” “ Painless machine learning in production”

  9. Lessons from industry regarding pain reduction and data scientist empowerment in the H. Chase Stevens productionization of Principal Data Science Engineer, Boston, MA chase@chasestevens.com machine learning models @hchasestevens

  10. Contents - Motivation - Developer experience - Our stack - Lessons learned

  11. Motivation I. Ops is intrinsic to ML

  12. Motivation I. Ops is intrinsic to ML II. MLOps is unsustainable

  13. Motivation I. Ops is intrinsic to ML II. MLOps is unsustainable ∴

  14. Motivation I. Ops is intrinsic to ML II. MLOps is unsustainable ∴ III. Data scientists want to do data science

  15. Motivation I. Ops is intrinsic to ML II. MLOps is unsustainable ∴ III. Data scientists want to do data science ∴

  16. I. Ops is intrinsic to ML Orchestration

  17. I. Ops is intrinsic to ML Orchestration

  18. I. Ops is intrinsic to ML Orchestration

  19. I. Ops is intrinsic to ML Sanders, H., & Saxe, J. (2017). Garbage in, garbage out: how purportedly great ML models can be screwed up by bad data.

  20. I. Ops is intrinsic to ML

  21. II. MLOps is unsustainable (in 1970)

  22. II. MLOps is unsustainable (in 1970) “I had to wait hours for my “You couldn't even delete a mistake” programs to turn around” “Only a select few programmers were allowed in the computer lab.” “One of our finals was to design, code, “I submitted my program to the punch, debug a solution - we got 4 days punch card crew, and got it back to do it which means finding typos, logic several days later with a rather errors, and design errors and eliminating strong note” them all with only 4 re-runs”

  23. II. MLOps is unsustainable (in 1970) “I had to wait hours for my “You couldn't even delete a mistake” programs to turn around” “Only a select few programmers were allowed in the computer lab.” “One of our finals was to design, code, “I submitted my program to the punch, debug a solution - we got 4 days punch card crew, and got it back to do it which means finding typos, logic several days later with a rather errors, and design errors and eliminating strong note” them all with only 4 re-runs”

  24. II. MLOps is unsustainable (in 2000) Code → QA → Release (?)

  25. II. MLOps is unsustainable (in 2000) Code → QA → Release (?)

  26. II. MLOps is unsustainable (in 2000) Code → QA → Release (?)

  27. II. MLOps is unsustainable (in 2000) Code → QA → Release (?)

  28. II. MLOps is unsustainable (in 2000) Code → QA → Release (?)

  29. II. MLOps is unsustainable (in 2000) Code → QA → Release (?)

  30. II. MLOps is unsustainable (today) “Here’s the model”

  31. II. MLOps is unsustainable (today) “Here’s the model” “This data isn’t available yet”

  32. II. MLOps is unsustainable (today) “Here’s the model” “This data isn’t available yet” “Try this instead”

  33. II. MLOps is unsustainable (today) “Here’s the model” “This data isn’t available yet” “Try this instead” “Wrong version of numpy”

  34. II. MLOps is unsustainable (today) “Here’s the model” “This data isn’t available yet” “Try this instead” “Wrong version of numpy” “That should be corrected”

  35. II. MLOps is unsustainable (today) “Here’s the model” “This data isn’t available yet” “Try this instead” “Wrong version of numpy” “That should be corrected” “This null value isn’t handled”

  36. II. MLOps is unsustainable (today) “Here’s the model” “This data isn’t available yet” “Try this instead” “Wrong version of numpy” “That should be corrected” “This null value isn’t handled” “Try again?”

  37. II. MLOps is unsustainable (today) “Here’s the model” “This data isn’t available yet” “Try this instead” “Wrong version of numpy” “That should be corrected” “This null value isn’t handled” “Try again?” “The graphs aren’t displaying”

  38. II. MLOps is unsustainable (today) “Here’s the model” “This data isn’t available yet” “Try this instead” “Wrong version of numpy” “That should be corrected” “This null value isn’t handled” “Try again?” “The graphs aren’t displaying” “OK, delete that part”

  39. II. MLOps is unsustainable (today) “Here’s the model” “This data isn’t available yet” “Try this instead” “Wrong version of numpy” “That should be corrected” “This null value isn’t handled” “Try again?” “The graphs aren’t displaying” “OK, delete that part” “This takes too long in prod”

  40. II. MLOps is unsustainable (today) “Here’s the model” “This data isn’t available yet” “Try this instead” “Wrong version of numpy” “That should be corrected” “This null value isn’t handled” “Try again?” “The graphs aren’t displaying” “OK, delete that part” “This takes too long in prod” “... Ready to try version two?”

  41. Developer experience $ cookiecutter git@github.com:teikametrics/sagemaker-framework.git github_username [my-github-username]: hchasestevens project_name [my-sagemaker-model]: europython-example-model project_slug [europython_example_model]: model_name [europython-example-model]: description [An ML model living on the SageMaker platform.]: An example model for Europython 2020. Select model_validation_metric: 1 - sklearn.metrics.mean_squared_error 2 - sklearn.metrics.r2_score 3 - sklearn.metrics.accuracy_score 4 - sklearn.metrics.log_loss 5 - sklearn.metrics.f1_score 6 - sagemaker_framework.utils.metrics.mean_absolute_percentage_error Choose from 1, 2, 3, 4, 5, 6 (1, 2, 3, 4, 5, 6) [1]: 1 Select promotion_criterion: 1 - sagemaker_framework.utils.promotion.maximize 2 - sagemaker_framework.utils.promotion.minimize 3 - sagemaker_framework.utils.promotion.maximize_with_tol 4 - sagemaker_framework.utils.promotion.minimize_with_tol 5 - sagemaker_framework.utils.promotion.manual 6 - sagemaker_framework.utils.promotion.always_promote Choose from 1, 2, 3, 4, 5, 6 (1, 2, 3, 4, 5, 6) [1]: 6 preprocessing_cpus [1]: preprocessing_memory_in_gb [4]: 8 test_proportion [0.2]: 0.1 training_cpus [1]: training_memory_in_gb [4]: training_volume_size_in_gb [2]: max_training_runtime_in_minutes [30]: 60 min_serving_instances [1]: max_serving_instances [10]: 1 serving_cpus [1]: serving_memory_in_gb [4]: 4

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend