Serving Machine Learning Models from Python

By Medium - 2020-12-15

Description

In this article I am going to show how to built a simple model server application using pypmml, os.stat module and Flask. The main serving format will be pmml but it can be extended other formats…

Summary

  • In this article I am going to show how to built a simple model server application using pypmml, os.stat module and Flask.
  • If the model class changes with next library version, you will not be able to unpickle models with never version.
  • Above code is a util module that contains model loading function.
  • In wrapper function, you can access the the caller object (Wrapper class in this case) reference (self) which uses the decorator.

 

Topics

  1. Coding (0.15)
  2. NLP (0.13)
  3. Machine_Learning (0.13)

Similar Articles