class_docstr: DAC Builder.
class_docstr_tok: ["DAC","Builder","."]
code: def __init__(
      self,
      config: DACConfig,
      make_demonstrations: Callable[[int], Iterator[types.Transition]],
  ):
      td3_builder = td3.TD3Builder(config.td3_config)
      dac_loss = losses.add_gradient_penalty(
          losses.gail_loss(
              entropy_coefficient=config.entropy_coefficient
          ),
          gradient_penalty_coefficient=config.gradient_penalty_coefficient,
          gradient_penalty_target=1.0,
      )
      super().__init__(
          td3_builder,
          config=config.ail_config,
          discriminator_loss=dac_loss,
          make_demonstrations=make_demonstrations,
      )
  
file_path: acme/acme/agents/jax/ail/dac.py
imports: import dataclasses
  from typing import Callable, Iterator
  from acme import types
  from acme.agents.jax import actor_core
  from acme.agents.jax import td3
  from acme.agents.jax.ail import builder
  from acme.agents.jax.ail import config
  from acme.agents.jax.ail import losses
label_desc: Use image node_id 1 to create a new DACBuilder object from inherited base classes: builder.AILBuilder with example: obj = DACBuilder(config, make_demonstrations)