(self, pendulum_mass, cart_mass, length, rot_friction=0.0,
                 dt=0.01, normalization=None)
Initialization; see `CartPole`.
Initialization; see `CartPole`.
Initialization ; see CartPole .
def __init__(self, pendulum_mass, cart_mass, length, rot_friction=0.0,
                 dt=0.01, normalization=None):
        """Initialization; see `CartPole`."""
        super(CartPole, self).__init__(name='CartPole')
        self.pendulum_mass = pendulum_mass
        self.cart_mass = cart_mass
        self.length = length
        self.rot_friction = rot_friction
        self.dt = dt
        self.gravity = 9.81
        self.state_dim = 4
        self.action_dim = 1
        self.normalization = normalization
        if normalization is not None:
            self.normalization = [np.array(norm, dtype=config.np_dtype)
                                  for norm in normalization]
            self.inv_norm = [norm ** -1 for norm in self.normalization]
def __init__ ( self , pendulum_mass , cart_mass , length , rot_friction = 0.0 , dt = 0.01 , normalization = None ) : super ( CartPole , self ) . __init__ ( name = 'CartPole' ) self . pendulum_mass = pendulum_mass self . cart_mass = cart_mass self . length = length self . rot_friction = rot_friction self . dt = dt self . gravity = 9.81 self . state_dim = 4 self . action_dim = 1 self . normalization = normalization if normalization is not None : self . normalization = [ np . array ( norm , dtype = config . np_dtype ) for norm in normalization ] self . inv_norm = [ norm ** - 1 for norm in self . normalization ]