Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ predict
Method
predict
rl2/mountaincar/n_step.py:39–40 ·
view source on GitHub ↗
(self, X)
Source
from the content-addressed store, hash-verified
37
self.w += self.lr*(Y - X.dot(self.w)).dot(X)
38
39
def
predict(self, X):
40
return
X.dot(self.w)
41
42
# replace SKLearn Regressor
43
q_learning.SGDRegressor = SGDRegressor
Callers
1
play_one
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected