A good practice for productionalizing machine learning models is to separate the training and evaluation programs. In this section, we will illustrate an evaluation script that has been expanded to include a unit test, model saving and loading, and evaluation.
An example of productionalizing TensorFlow
Getting ready
In this recipe, we will show you how to implement an evaluation script using the afore-mentioned criteria. The code actually consists of a training script and an evaluation script, but for this recipe we will only show you the evaluation script. As a reminder, both scripts can been seen in the online GitHub repository at https://github.com/nfmcclure/tensorflow_cookbook/ and at the official Packt repository: https...