Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ entropy
Method
entropy
rl2/mountaincar/pg_theano.py:109–110 ·
view source on GitHub ↗
(var)
Source
from the content-addressed store, hash-verified
107
return
-0.5*(k1 + k2)
108
109
def
entropy(var):
110
return
0.5*T.log(2*np.pi*np.e*var)
111
112
log_probs = log_pdf(actions, mean, var)
113
cost = -T.sum(advantages * log_probs + 0.1*entropy(var))
Callers
4
get_cost
Function · 0.80
objective
Function · 0.80
__init__
Method · 0.80
fit
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected