d1ac7b831ad36cd0e4bdd7980819f83208345148,gpflow/expectations.py,,_expectation,#Any#Any#Any#Any#Any#,512
Before Change
@dispatch(Gaussian, kernels.Sum, InducingPoints, kernels.Sum, InducingPoints)
@quadrature_fallback
def _expectation(p, kern1, feat1, kern2, feat2):
if feat1 != feat2:
raise NotImplementedError("Different features are not supported")
feat = feat1
crossexps = []
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:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
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: ray-project/ray
Commit Name: 1775e89f262111791fabfd40f80a24f74738fe54
Time: 2020-04-28
Author: sven@anyscale.io
File Name: rllib/models/catalog.py
Class Name: ModelCatalog
Method Name: get_action_dist
Project Name: ray-project/ray
Commit Name: c4e273920f517b18c99fbabca49135dd6e30e683
Time: 2020-12-22
Author: me@barakmich.com
File Name: python/ray/experimental/client/__init__.py
Class Name: RayAPIStub
Method Name: init