class_docstr: Wrapper class for importing Keras regression models.
class_docstr_tok: ["Wrapper","class","for","importing","Keras","regression","models","."]
docstr: Save a model to file in the format specific to the backend framework. For Keras, .h5 format is used.
  
  :param filename: Name of the file where to store the model.
  :param path: Path of the folder where to store the model. If no path is specified, the model will be stored in
               the default data location of the library `ART_DATA_PATH`.
docstr_tok: ["Save","a","model","to","file","in","the","format","specific","to","the","backend","framework",".","For","Keras",",",".h5","format","is","used",".",":","param","filename",":","Name","of","the","file","where","to","store","the","model",".",":","param","path",":","Path","of","the","folder","where","to","store","the","model",".","If","no","path","is","specified",",","the","model","will","be","stored","in","the","default","data","location","of","the","library","`","ART_DATA_PATH","`","."]
code: def save(self, filename: str, path: Optional[str] = None) -> None:
      """
      Save a model to file in the format specific to the backend framework. For Keras, .h5 format is used.
  
      :param filename: Name of the file where to store the model.
      :param path: Path of the folder where to store the model. If no path is specified, the model will be stored in
                   the default data location of the library `ART_DATA_PATH`.
      """
      if path is None:
          full_path = os.path.join(config.ART_DATA_PATH, filename)
      else:
          full_path = os.path.join(path, filename)
      folder = os.path.split(full_path)[0]
      if not os.path.exists(folder):
          os.makedirs(folder)
  
      self._model.save(str(full_path))
      logger.info("Model saved in path: %s.", full_path)
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import os
  import time
  from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple, Union, TYPE_CHECKING
  import numpy
  import six
  from art import config
  from art.estimators.keras import KerasEstimator
  from art.estimators.regression.regressor import RegressorMixin
label_desc: Use image node_id 15 for calling the KerasRegressor obj's underlying member method code with example usage: obj.save(filename, path) without return types