October 2018
Intermediate to advanced
252 pages
6h 49m
English
The DQNAgent class has the following methods that embody, model, remember, and so on, which we discussed earlier:
class DqnAgent: def __init__(self, state_size, action_size): def _build_model(self): def remember(self, state, action, reward, next_state, done): def act(self, state): def replay(self, batch_size): def load(self, name): def save(self, name):
Each method has the following functions: