Exemplo n.º 1
0
 def __init__(self, topology, epochs, memory_length, batch_size, learning_rate, gamma, epsilon, epsilon_min,
              epsilon_decay):
     Memory.__init__(self, memory_length)
     self.memory_length = memory_length
     self.batch_size = batch_size
     self.topology = topology
     self.learning_rate = learning_rate
     self.epochs = epochs
     self.gamma = gamma
     self.epsilon = epsilon
     self.epsilon_min = epsilon_min
     self.epsilon_decay = epsilon_decay
     self.q_network = self._build_model()
     self.q_network_target = self._build_model()
Exemplo n.º 2
0
    def __init__(self):
        # Enteras temporales
        int = 20000
        int_limit = 21999

        # Flotantes globales
        float = 22000
        float_limit = 23999

        # Temporales booleanas
        bool = 24000
        bool_limit = 25999

        Memory.__init__(self, int, int_limit, float, float_limit, bool, bool_limit)
Exemplo n.º 3
0
    def __init__(self):
        # Constantes enteras
        int= 26000
        int_limit = 27999

        # Constantes flotantes
        float= 28000
        float_limit = 29999

        # Constantes booleanas
        bool= 30000
        bool_limit = 30001

        Memory.__init__(self, int, int_limit, float, float_limit, bool, bool_limit)
Exemplo n.º 4
0
    def __init__(self):
        ## Enteras locales
        int = 12000
        int_limit = 13999

        # Flotantes locales
        float = 14000
        float_limit = 15999

        # Booleanas locales
        bool = 16000
        bool_limit = 17999

        self.draw = 18000
        self.draw_next = 18000
        self.draw_limit = 19999

        Memory.__init__(self, int, int_limit, float, float_limit, bool, bool_limit)
Exemplo n.º 5
0
    def __init__(self):
        # Enteras globales
        int = 4000
        int_limit = 5999

        # Flotantes globales
        float = 6000
        float_limit = 7999

        # Booleanas globales
        bool = 8000
        bool_limit = 9999

        self.draw = 10000
        self.draw_next = 10000
        self.draw_limit = 11999

        Memory.__init__(self, int, int_limit, float, float_limit, bool, bool_limit)