Exemple #1
0
 def __init__(
     self,
     action_size,
     observation_size,  # not used here for retro compatibility with NNParam.from_dict
     sizes,
     activs,
     x_dim,
     list_attr_obs,
     tau_dims,
     tau_adds,
     tau_mults,
     list_attr_obs_tau,
 ):
     NNParam.__init__(
         self,
         action_size,
         observation_size=x_dim +
         np.sum(tau_dims),  # TODO this might not be usefull
         sizes=sizes,
         activs=activs,
         list_attr_obs=list_attr_obs)
     self.tau_dims = [int(el) for el in tau_dims]
     self.list_attr_obs_tau = [str(el) for el in list_attr_obs_tau]
     self.x_dim = x_dim
     self.tau_adds = tau_adds
     self.tau_mults = tau_mults
 def __init__(
         self,
         action_size,
         observation_size,  # TODO this might not be usefull
         sizes,
         activs,
         list_attr_obs):
     NNParam.__init__(
         self,
         action_size,
         observation_size,  # TODO this might not be usefull
         sizes,
         activs,
         list_attr_obs)
Exemple #3
0
 def __init__(
         self,
         action_size,
         observation_size,  # TODO this might not be usefull
         sizes,
         activs,
         list_attr_obs,
         sizes_value,
         activs_value,
         sizes_policy,
         activs_policy):
     NNParam.__init__(
         self,
         action_size,
         observation_size,  # TODO this might not be usefull
         sizes,
         activs,
         list_attr_obs)
     self.sizes_value = sizes_value
     self.activs_value = activs_value
     self.sizes_policy = sizes_policy
     self.activs_policy = activs_policy