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

Method update

rl2/mountaincar/q_learning.py:82–85  ·  view source on GitHub ↗
(self, s, a, G)

Source from the content-addressed store, hash-verified

80 return result
81
82 def update(self, s, a, G):
83 X = self.feature_transformer.transform([s])
84 assert(len(X.shape) == 2)
85 self.models[a].partial_fit(X, [G])
86
87 def sample_action(self, s, eps):
88 # eps = 0

Callers 1

play_oneFunction · 0.45

Calls 2

transformMethod · 0.45
partial_fitMethod · 0.45

Tested by

no test coverage detected