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

Method predict

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

Source from the content-addressed store, hash-verified

53 self.w = np.zeros(dims)
54
55 def predict(self, s):
56 x = self.featurizer.transform([s])[0]
57 return x @ self.w
58
59 def grad(self, s):
60 x = self.featurizer.transform([s])[0]

Callers 1

Calls 1

transformMethod · 0.45

Tested by

no test coverage detected