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

Method grad

rl/approx_prediction.py:59–61  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

57 return x @ self.w
58
59 def grad(self, s):
60 x = self.featurizer.transform([s])[0]
61 return x
62
63
64if __name__ == '__main__':

Callers 1

Calls 1

transformMethod · 0.45

Tested by

no test coverage detected