class_docstr: Tunes Keras Model hyperparameters using the Keras Tuner.
class_docstr_tok: ["Tunes","Keras","Model","hyperparameters","using","the","Keras","Tuner","."]
docstr: Initializes a KerasTunerPhase.
  
  Args:
    tuner: A `kerastuner.tuners.tuner.Tuner` instance or a callable that
      returns a `kerastuner.tuners.tuner.Tuner` instance.
    *search_args: Arguments to pass to the tuner search method.
    **search_kwargs: Keyword arguments to pass to the tuner search method.
docstr_tok: ["Initializes","a","KerasTunerPhase",".","Args",":","tuner",":","A","`","kerastuner.tuners.tuner.Tuner","`","instance","or","a","callable","that","returns","a","`","kerastuner.tuners.tuner.Tuner","`","instance",".","*","search_args",":","Arguments","to","pass","to","the","tuner","search","method",".","*","*","search_kwargs",":","Keyword","arguments","to","pass","to","the","tuner","search","method","."]
code: def __init__(
      self,
      tuner: Union[Callable[..., Tuner], Tuner],
      *search_args,
      **search_kwargs,
  ):
      """Initializes a KerasTunerPhase.
  
      Args:
        tuner: A `kerastuner.tuners.tuner.Tuner` instance or a callable that
          returns a `kerastuner.tuners.tuner.Tuner` instance.
        *search_args: Arguments to pass to the tuner search method.
        **search_kwargs: Keyword arguments to pass to the tuner search method.
      """
  
      if callable(tuner):
          self._tuner = tuner()
      else:
          self._tuner = tuner
      self._search_args = search_args
      self._search_kwargs = search_kwargs
  
file_path: adanet/adanet/experimental/phases/keras_tuner_phase.py
imports: import sys
  from typing import Callable, Iterable, Iterator, Union
  from adanet.experimental.phases.phase import DatasetProvider
  from adanet.experimental.phases.phase import ModelProvider
  from adanet.experimental.work_units.keras_tuner_work_unit import KerasTunerWorkUnit
  from adanet.experimental.work_units.work_unit import WorkUnit
  from kerastuner.engine.tuner import Tuner
  import tensorflow.compat.v2
label_desc: Use image node_id 1 to create a new KerasTunerPhase object from inherited base classes: DatasetProvider, ModelProvider with example: obj = KerasTunerPhase(tuner)