title: How to save and load the keras history object, and add annotation on it in r?
body: <p>After the training and fitting with keras, we will get the history as ""keras_training_history" object, when we plot it with <code>plot(history)</code>, we get a ggplot object.</p>
  
  <p>I would like to ask for advice.</p>
  
  <ol>
  <li><p>how can I save and load the "keras_training_object" as i can do to the model with <code>save_model_hdf5</code> or <code>load_model_hdf5</code>?</p></li>
  <li><p>besides, we can do some annotation on it with</p></li>
  </ol>
  
  <p><code>p &lt;- plot(history)</code></p>
  
  <p><code>p &lt;- p + annotate(geom = "text", x = 10, y = 0.5, label = "Annotation Here", col = "red")</code></p>
  
  <p>my question is how to add specific text at specific position, instead of repeating it?</p>
  
  <p>Since I don't know how to save it, or load it back, so sorry that I can't attach the file.</p>
  
  <p>Many thanks.</p>
  
  <p><a href="https://i.stack.imgur.com/TBSG7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TBSG7.png" alt="enter image description here"></a></p>