d1ac7b831ad36cd0e4bdd7980819f83208345148,gpflow/expectations.py,,_expectation,#Any#Any#Any#Any#Any#,512
Before Change
for k1, k2 in it.product(kern1.kern_list, kern2.kern_list):
if k1.on_separate_dims(k2):
eKxz1 = _expectation(p, k1, feat, None, None)
eKxz2 = _expectation(p, k2, feat, None, None)
result = eKxz1[:, :, None] * eKxz2[:, None, :]
else:
result = _expectation(p, k1, feat, k2, feat)
After Change
crossexps.append(expectation(p, (k1, feat1), (k1, feat1)))
for k2 in kern1.kern_list[:i]:
eKK = expectation(p, (k1, feat1), (k2, feat2))
eKK += tf.matrix_transpose(eKK)
crossexps.append(eKK)
else:
for k1, k2 in it.product(kern1.kern_list, kern2.kern_list):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: GPflow/GPflow
Commit Name: d1ac7b831ad36cd0e4bdd7980819f83208345148
Time: 2018-02-07
Author: alex.ialongo@gmail.com
File Name: gpflow/expectations.py
Class Name:
Method Name: _expectation
Project Name: GPflow/GPflow
Commit Name: d1ac7b831ad36cd0e4bdd7980819f83208345148
Time: 2018-02-07
Author: alex.ialongo@gmail.com
File Name: gpflow/expectations.py
Class Name:
Method Name: _expectation
Project Name: GPflow/GPflow
Commit Name: d1ac7b831ad36cd0e4bdd7980819f83208345148
Time: 2018-02-07
Author: alex.ialongo@gmail.com
File Name: gpflow/expectations.py
Class Name:
Method Name: _expectation