original_docstring: Model Saver
          WHAT: Saves a trained model so it can be loaded later
          for predictions by predictor().
          
docstring: Model Saver
  WHAT: Saves a trained model so it can be loaded later
  for predictions by predictor().
docstring_tokens: Model Saver WHAT : Saves a trained model so it can be loaded later for predictions by predictor () .
code: def save_model_as(self):
  
          '''Model Saver
          WHAT: Saves a trained model so it can be loaded later
          for predictions by predictor().
          '''
  
          model_json = self.model.to_json()
          with open(self.path + "_model.json", "w") as json_file:
              json_file.write(model_json)
  
          self.model.save_weights(self.path + "_model.h5")
          print("Deploy package" + " " + self.model_name + " " + "have been saved.")
code_tokens: def save_model_as ( self ) : model_json = self . model . to_json ( ) with open ( self . path + "_model.json" , "w" ) as json_file : json_file . write ( model_json ) self . model . save_weights ( self . path + "_model.h5" ) print ( "Deploy package" + " " + self . model_name + " " + "have been saved." )
short_docstring: Model Saver
  WHAT: Saves a trained model so it can be loaded later
  for predictions by predictor().
short_docstring_tokens: Model Saver WHAT : Saves a trained model so it can be loaded later for predictions by predictor () .
comment: '''Model Saver
          WHAT: Saves a trained model so it can be loaded later
          for predictions by predictor().
          '''