Skip to content

Commit 90e953e

Browse files
committed
Fixes jingweiz#16
1 parent 20b3b73 commit 90e953e

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

core/agent.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,16 @@ def _save_model(self, step, curr_reward):
134134
self.logger.warning("Saved Model @ Step: " + str(step) + ": " + self.model_name + ".")
135135

136136
def _forward(self, observation):
137-
raise NotImplementedError("not implemented in base calss")
137+
raise NotImplementedError("not implemented in base class")
138138

139139
def _backward(self, reward, terminal):
140-
raise NotImplementedError("not implemented in base calss")
140+
raise NotImplementedError("not implemented in base class")
141141

142142
def _eval_model(self): # evaluation during training
143-
raise NotImplementedError("not implemented in base calss")
143+
raise NotImplementedError("not implemented in base class")
144144

145145
def fit_model(self): # training
146-
raise NotImplementedError("not implemented in base calss")
146+
raise NotImplementedError("not implemented in base class")
147147

148148
def test_model(self): # testing pre-trained models
149-
raise NotImplementedError("not implemented in base calss")
149+
raise NotImplementedError("not implemented in base class")

core/agent_single_process.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ def _ensure_global_grads(self):
5353
global_param._grad = local_param.grad
5454

5555
def _forward(self, observation):
56-
raise NotImplementedError("not implemented in base calss")
56+
raise NotImplementedError("not implemented in base class")
5757

5858
def _backward(self, reward, terminal):
59-
raise NotImplementedError("not implemented in base calss")
59+
raise NotImplementedError("not implemented in base class")
6060

6161
def run(self):
62-
raise NotImplementedError("not implemented in base calss")
62+
raise NotImplementedError("not implemented in base class")

core/env.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ def _get_experience(self):
5151
terminal1 = self.exp_terminal1)
5252

5353
def _preprocessState(self, state):
54-
raise NotImplementedError("not implemented in base calss")
54+
raise NotImplementedError("not implemented in base class")
5555

5656
@property
5757
def state_shape(self):
58-
raise NotImplementedError("not implemented in base calss")
58+
raise NotImplementedError("not implemented in base class")
5959

6060
@property
6161
def action_dim(self):
@@ -65,13 +65,13 @@ def action_dim(self):
6565
return self.env.action_space.n
6666

6767
def render(self): # render using the original gl window
68-
raise NotImplementedError("not implemented in base calss")
68+
raise NotImplementedError("not implemented in base class")
6969

7070
def visual(self): # visualize onto visdom
71-
raise NotImplementedError("not implemented in base calss")
71+
raise NotImplementedError("not implemented in base class")
7272

7373
def reset(self):
74-
raise NotImplementedError("not implemented in base calss")
74+
raise NotImplementedError("not implemented in base class")
7575

7676
def step(self, action):
77-
raise NotImplementedError("not implemented in base calss")
77+
raise NotImplementedError("not implemented in base class")

core/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def __init__(self, args):
3131
self.output_dims = args.action_dim
3232

3333
def _init_weights(self):
34-
raise NotImplementedError("not implemented in base calss")
34+
raise NotImplementedError("not implemented in base class")
3535

3636
def print_model(self):
3737
self.logger.warning("<-----------------------------------> Model")
@@ -43,4 +43,4 @@ def _reset(self): # NOTE: should be called at each child's __init__
4343
self.print_model()
4444

4545
def forward(self, input):
46-
raise NotImplementedError("not implemented in base calss")
46+
raise NotImplementedError("not implemented in base class")

0 commit comments

Comments
 (0)