MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / predict

Method predict

rl2/cartpole/td_lambda.py:57–60  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

55 self.eligibilities = np.zeros_like(self.eligibilities)
56
57 def predict(self, s):
58 X = self.feature_transformer.transform([s])
59 result = np.stack([m.predict(X) for m in self.models]).T
60 return result
61
62 def update(self, s, a, G, gamma, lambda_):
63 X = self.feature_transformer.transform([s])

Callers 2

sample_actionMethod · 0.95
play_oneFunction · 0.45

Calls 1

transformMethod · 0.45

Tested by

no test coverage detected