-
Notifications
You must be signed in to change notification settings - Fork 0
/
actor_agent.py
54 lines (36 loc) · 967 Bytes
/
actor_agent.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import numpy as np
import bisect
from utils import *
class ActorAgent():
def __init__(self):
pass
def actor_network(self):
pass
def apply_gradients(self, gradients, lr_rate):
pass
def define_params_op(self):
# define operations for setting network parameters
return None
def gcn_forward(self, node_inputs, summ_mats):
return None
def get_params(self):
return self.sess.run(self.params)
def save_model(self, file_path):
self.saver.save(self.sess, file_path)
def get_gradients(self):
return None
def predict(self):
return None
def set_params(self, input_params):
pass
def translate_state(self, obs):
"""
Translate the observation to matrix form
"""
pass
def get_valid_masks(self):
pass
def invoke_model(self, obs):
pass
def get_action(self, obs):
pass