(n_actions, batch_size=64)
| 9 | |
| 10 | |
| 11 | def mlp_model(n_actions, batch_size=64): |
| 12 | model = NeuralNet( |
| 13 | layers=[Dense(32), Activation("relu"), Dense(n_actions)], |
| 14 | loss="mse", |
| 15 | optimizer=Adam(), |
| 16 | metric="mse", |
| 17 | batch_size=batch_size, |
| 18 | max_epochs=1, |
| 19 | verbose=False, |
| 20 | ) |
| 21 | return model |
| 22 | |
| 23 | |
| 24 | model = DQN(n_episodes=2500, batch_size=64) |
nothing calls this directly
no test coverage detected