MCPcopy Create free account
hub / github.com/BIT-MCS/DRL-eFresh / __init__

Method __init__

utils/main_mp_github.py:15–20  ·  view source on GitHub ↗
(self, agent)

Source from the content-addressed store, hash-verified

13
14class Policy(nn.Module):
15 def __init__(self, agent):
16 super(Policy, self).__init__()
17 self.agent = agent
18
19 self.saved_log_probs = []
20 self.rewards = []
21
22 def forward(self, observation):
23 """Sample action from agents output distribution over actions.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected