class_docstr: Wrapper class for importing Keras regression models.
class_docstr_tok: ["Wrapper","class","for","importing","Keras","regression","models","."]
docstr: Return the hidden layers in the model, if applicable.
  
  :return: The hidden layers in the model, input and output layers excluded.
docstr_tok: ["Return","the","hidden","layers","in","the","model",",","if","applicable",".",":","return",":","The","hidden","layers","in","the","model",",","input","and","output","layers","excluded","."]
code: def _get_layers(self) -> List[str]:
      """
      Return the hidden layers in the model, if applicable.
  
      :return: The hidden layers in the model, input and output layers excluded.
      """
      # pylint: disable=E0401
      if self.is_tensorflow:
          from tensorflow.keras.layers import (
              InputLayer,
          )  # pylint: disable=E0611
      else:
          from keras.engine.topology import (
              InputLayer,
          )  # pylint: disable=E0611
  
      layer_names = [
          layer.name
          for layer in self._model.layers[:-1]
          if not isinstance(layer, InputLayer)
      ]
      logger.info(
          "Inferred %i hidden layers on Keras regressor.",
          len(layer_names),
      )
  
      return layer_names
  
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 14 for calling the KerasRegressor obj's underlying member method code with example usage: obj._get_layers() and returns: layer_names