Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
approx_prediction.py
File · 0.45
Calls
1
transform
Method · 0.45
Tested by
no test coverage detected