assignment3_coding/starter_code 2/code/policy_network.py
def build(self):
    """
    Build the model by adding all necessary variables.

    You don't have to change anything here - we are just calling
    all the operations you already defined above to build the tensorflow graph.
    """

    # add placeholders
    self.add_placeholders_op()
    # create policy net
    self.build_policy_network_op()
    # add square loss
    self.add_loss_op()
    # add optmizer for the main networks
    self.add_optimizer_op()

    # add baseline
    if self.config.use_baseline:
      # check if the baseline is enabled and instantiate the baseline network in that case
      self.baseline_network = BaselineNetwork(self.env, self.config, self.observation_placeholder)
      self.baseline_network.add_baseline_op()

    Build the model by adding all necessary variables.

    You don't have to change anything here - we are just calling
    all the operations you already defined above to build the tensorflow graph.
    
Build the model by adding all necessary variables.
You don't have to change anything here - we are just calling
all the operations you already defined above to build the tensorflow graph.
Build the model by adding all necessary variables . You don ' t have to change anything here - we are just calling all the operations you already defined above to build the tensorflow graph .
def build(self):
    self.add_placeholders_op()
    self.build_policy_network_op()
    self.add_loss_op()
    self.add_optimizer_op()
    if self.config.use_baseline:
      self.baseline_network = BaselineNetwork(self.env, self.config, self.observation_placeholder)
      self.baseline_network.add_baseline_op()
def build ( self ) : self . add_placeholders_op ( ) self . build_policy_network_op ( ) self . add_loss_op ( ) self . add_optimizer_op ( ) if self . config . use_baseline : self . baseline_network = BaselineNetwork ( self . env , self . config , self . observation_placeholder ) self . baseline_network . add_baseline_op ( )
Build the model by adding all necessary variables.
Build the model by adding all necessary variables .
"""
    Build the model by adding all necessary variables.

    You don't have to change anything here - we are just calling
    all the operations you already defined above to build the tensorflow graph.
    """ # add placeholders # create policy net # add square loss # add optmizer for the main networks # add baseline # check if the baseline is enabled and instantiate the baseline network in that case
self