def __init__(self, discrete_action=False, visual_inputs=0, stack=True, num_agents=3,
                 brain_name="RealFakeBrain", vec_obs_size=3):
        """
        Python side of the grpc communication. Python is the client and Unity the server

        :int base_port: Baseline port number to connect to Unity environment over. worker_id increments over this.
        :int worker_id: Number to add to communication port (5005) [0]. Used for asynchronous agent scenarios.
        """
        self.is_discrete = discrete_action
        self.steps = 0
        self.visual_inputs = visual_inputs
        self.has_been_closed = False
        self.num_agents = num_agents
        self.brain_name = brain_name
        self.vec_obs_size = vec_obs_size
        if stack:
            self.num_stacks = 2
        else:
            self.num_stacks = 1
def __init__ ( self , discrete_action = False , visual_inputs = 0 , stack = True , num_agents = 3 , brain_name = "RealFakeBrain" , vec_obs_size = 3 ) : self . is_discrete = discrete_action self . steps = 0 self . visual_inputs = visual_inputs self . has_been_closed = False self . num_agents = num_agents self . brain_name = brain_name self . vec_obs_size = vec_obs_size if stack : self . num_stacks = 2 else : self . num_stacks = 1
Python side of the grpc communication. Python is the client and Unity the server

        :int base_port: Baseline port number to connect to Unity environment over. worker_id increments over this.
        :int worker_id: Number to add to communication port (5005) [0]. Used for asynchronous agent scenarios.