3ef6396af599fec5e899ed2674f7bb60d98a88a4,paysage/layers.py,BernoulliLayer,update,#BernoulliLayer#Any#Any#Any#,1080
Before Change
None
self.ext_params["field"] = be.dot(scaled_units[0], weights[0])
for i in range(1, len(weights)):
self.ext_params["field"] += be.dot(scaled_units[i], weights[i])
if beta is not None:
self.ext_params["field"] *= be.broadcast(
beta,
self.ext_params["field"]
)
self.ext_params["field"] += be.broadcast(
self.int_params["loc"],
self.ext_params["field"]
)
def derivatives(self, vis, hid, weights, beta=None):
Compute the derivatives of the intrinsic layer parameters.
After Change
for i in range(1, len(weights)):
field += be.dot(scaled_units[i], weights[i])
if beta is not None:
field *= be.broadcast(beta, field)
field += be.broadcast(self.int_params.loc, field)
self.ext_params = BernoulliLayer.ExtrinsicParams(field)
def derivatives(self, vis, hid, weights, beta=None):
Compute the derivatives of the intrinsic layer parameters.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 36
Instances
Project Name: drckf/paysage
Commit Name: 3ef6396af599fec5e899ed2674f7bb60d98a88a4
Time: 2017-03-31
Author: charleskennethfisher@gmail.com
File Name: paysage/layers.py
Class Name: BernoulliLayer
Method Name: update
Project Name: drckf/paysage
Commit Name: 1184f7dd9e9970620f09d27445c80fd08efcfea6
Time: 2017-03-31
Author: charleskennethfisher@gmail.com
File Name: paysage/layers.py
Class Name: IsingLayer
Method Name: update
Project Name: drckf/paysage
Commit Name: 3ef6396af599fec5e899ed2674f7bb60d98a88a4
Time: 2017-03-31
Author: charleskennethfisher@gmail.com
File Name: paysage/layers.py
Class Name: BernoulliLayer
Method Name: update
Project Name: drckf/paysage
Commit Name: b326b8034d5e8973c8aa9fbb5427d23963a430f8
Time: 2017-03-31
Author: charleskennethfisher@gmail.com
File Name: paysage/layers.py
Class Name: ExponentialLayer
Method Name: update