Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
train DecisionTree on multiple records
Browse files Browse the repository at this point in the history
  • Loading branch information
rageSpin committed Feb 12, 2023
1 parent feaabfb commit 5986abf
Show file tree
Hide file tree
Showing 2 changed files with 174 additions and 40 deletions.
3 changes: 1 addition & 2 deletions Reinforcement Learning/CartPole/cartpole-DQN.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def experience_replay(self):
q_values[0][action] = q_update
#print(state.shape, q_values.shape)
x[i], y[i] = state, q_values
self.model.fit(x, y, verbose=0, epochs=10)
self.model.fit(x, y, verbose=0, epochs=3)
self.exploration_rate *= EXPLORATION_DECAY
self.exploration_rate = max(EXPLORATION_MIN, self.exploration_rate)

Expand Down Expand Up @@ -92,7 +92,6 @@ def cartpole():
dqn_solver.experience_replay()
break


if run > 1000:
break

Expand Down
211 changes: 173 additions & 38 deletions Reinforcement Learning/CartPole/cartpole-simple_physics.ipynb

Large diffs are not rendered by default.

0 comments on commit 5986abf

Please sign in to comment.