class_docstr: Tunes Keras Model hyperparameters using the Keras Tuner.
class_docstr_tok: ["Tunes","Keras","Model","hyperparameters","using","the","Keras","Tuner","."]
code: def work_units(
      self, previous_phase: DatasetProvider
  ) -> Iterator[WorkUnit]:
      self._train_dataset = previous_phase.get_train_dataset()
      self._eval_dataset = previous_phase.get_eval_dataset()
      yield KerasTunerWorkUnit(
          self._tuner,
          x=self._train_dataset,
          validation_data=self._eval_dataset,
          *self._search_args,
          **self._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 2 for calling the KerasTunerPhase obj's underlying member method code with example usage: obj.work_units(previous_phase) without return types