So far, we have been focused on getting something to work for the very first time and then making incremental updates. These updates are almost always geared toward better techniques and better usability. But, how do we expose them to the user? One way to do this is via REST endpoints.
In this chapter, we are going to cover the following topics:
- Training a model, and writing some neater utils for data I/O
- Building a predict function, separated from training
- Exposing what we have covered using a Flask REST endpoint