Arnas
commited on
Commit
•
b3e3821
1
Parent(s):
e7650e8
cleanup and fix
Browse files- README.md +3 -3
- example.py +3 -3
- model/agent.py +0 -2
README.md
CHANGED
@@ -34,9 +34,9 @@ More details about the project and the trained agent can be found in the [projec
|
|
34 |
import gym
|
35 |
import yaml
|
36 |
import torch
|
37 |
-
from
|
38 |
-
from
|
39 |
-
from
|
40 |
|
41 |
# Environment
|
42 |
env_name = 'FrozenLake-v1'
|
|
|
34 |
import gym
|
35 |
import yaml
|
36 |
import torch
|
37 |
+
from model.qnn import QuantumNet
|
38 |
+
from hemodellpers.wrappers import BinaryWrapper
|
39 |
+
from model.agent import Agent
|
40 |
|
41 |
# Environment
|
42 |
env_name = 'FrozenLake-v1'
|
example.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
import gym
|
2 |
import yaml
|
3 |
import torch
|
4 |
-
from
|
5 |
-
from
|
6 |
-
from
|
7 |
|
8 |
# Environment
|
9 |
env_name = 'FrozenLake-v1'
|
|
|
1 |
import gym
|
2 |
import yaml
|
3 |
import torch
|
4 |
+
from model.qnn import QuantumNet
|
5 |
+
from model.wrappers import BinaryWrapper
|
6 |
+
from model.agent import Agent
|
7 |
|
8 |
# Environment
|
9 |
env_name = 'FrozenLake-v1'
|
model/agent.py
CHANGED
@@ -1,5 +1,3 @@
|
|
1 |
-
# Based on : https://github.com/djbyrne/core_rl/blob/master/algos/dqn/model.py
|
2 |
-
|
3 |
import numpy as np
|
4 |
import torch
|
5 |
|
|
|
|
|
|
|
1 |
import numpy as np
|
2 |
import torch
|
3 |
|