Arnas commited on
Commit
e7650e8
β€’
1 Parent(s): 0f3af0d
README.md CHANGED
@@ -34,7 +34,7 @@ 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 helpers.load import QuantumNet
38
  from helpers.wrappers import BinaryWrapper
39
  from helpers.agent import Agent
40
 
@@ -45,7 +45,7 @@ env = BinaryWrapper(env)
45
 
46
  # Network
47
  with open('config.yaml', 'r') as f:
48
- hparams = yaml.safe_load(f)
49
 
50
  net = QuantumNet(hparams['n_layers'])
51
  state_dict = torch.load('qdqn-FrozenLake-v1.pt', map_location=torch.device('cpu'))
 
34
  import gym
35
  import yaml
36
  import torch
37
+ from helpers.qnn import QuantumNet
38
  from helpers.wrappers import BinaryWrapper
39
  from helpers.agent import Agent
40
 
 
45
 
46
  # Network
47
  with open('config.yaml', 'r') as f:
48
+ hparams = yaml.safe_load(f)
49
 
50
  net = QuantumNet(hparams['n_layers'])
51
  state_dict = torch.load('qdqn-FrozenLake-v1.pt', map_location=torch.device('cpu'))
example.py CHANGED
@@ -1,7 +1,7 @@
1
  import gym
2
  import yaml
3
  import torch
4
- from helpers.load import QuantumNet
5
  from helpers.wrappers import BinaryWrapper
6
  from helpers.agent import Agent
7
 
 
1
  import gym
2
  import yaml
3
  import torch
4
+ from helpers.qnn import QuantumNet
5
  from helpers.wrappers import BinaryWrapper
6
  from helpers.agent import Agent
7
 
{helpers β†’ model}/__init__.py RENAMED
File without changes
{helpers β†’ model}/agent.py RENAMED
File without changes
helpers/load.py β†’ model/qnn.py RENAMED
File without changes
{helpers β†’ model}/wrappers.py RENAMED
File without changes