Conversion of the Network Structure
The goal of a deployment workflow is to apply a trained network to new real-world data. Therefore, the last step of the training workflow must be to save the trained network.
Saving a Trained Network
All networks described in this book have been trained using the Keras libraries, relying on TensorFlow as the backend. So, the most natural way to save a network is to continue using the Keras libraries and therefore to use the Keras Network Writer node. The Keras Network Writer node writes the network, including its weights, in Keras format into a .h5
file.
However, Keras-formatted networks can only be interpreted and executed via the Keras libraries. This is already one level on top of the TensorFlow libraries. Executing the network application on the TensorFlow Java API directly, rather than on a Python kernel via the Keras Python API, makes execution faster. The good news is that KNIME Analytics Platform also has nodes for TensorFlow execution...