MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / grad

Method grad

rl/approx_control.py:77–80  ·  view source on GitHub ↗
(self, s, a)

Source from the content-addressed store, hash-verified

75 return [self.predict(s, a) for a in ALL_POSSIBLE_ACTIONS]
76
77 def grad(self, s, a):
78 sa = merge_state_action(s, a)
79 x = self.featurizer.transform([sa])[0]
80 return x
81
82
83if __name__ == '__main__':

Callers 1

approx_control.pyFile · 0.45

Calls 2

merge_state_actionFunction · 0.85
transformMethod · 0.45

Tested by

no test coverage detected