Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ free_energy
Method
free_energy
unsupervised_class2/rbm.py:89–90 ·
view source on GitHub ↗
(self, V)
Source
from the content-addressed store, hash-verified
87
plt.show()
88
89
def
free_energy(self, V):
90
return
-V.dot(self.b) - T.sum(T.log(1 + T.exp(V.dot(self.W) + self.c)), axis=1)
91
92
def
sample_h_given_v(self, V):
93
p_h_given_v = T.nnet.sigmoid(V.dot(self.W) + self.c)
Callers
1
fit
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected