d57bfbec8e170a6c8517d60b585393b0f3b3c732,gpflow/models/svgp.py,SVGP,log_likelihood,#SVGP#,137
Before Change
kl = self.prior_kl()
f_mean, f_var = self.predict_f(X)
var_exp = self.likelihood.variational_expectations(f_mean, f_var, Y)
scale = tf.cast(self.num_data, kl.dtype) / tf.cast(tf.shape(X)[0], kl.dtype)
return tf.reduce_sum(var_exp) * scale - kl
def predict_f(self, Xnew, full_cov=False, full_output_cov=False) -> tf.Tensor:
q_mu = self.q_mu()
After Change
var_exp = self.likelihood.variational_expectations(f_mean, f_var, Y)
scale = tf.cast(1.0, kl.data)
if self.num_data is not None:
num_data = tf.cast(self.num_data, kl.dtype)
minibatch_size = tf.cast(tf.shape(X)[0], kl.dtype)
scale = num_data / minibatch_size
return tf.reduce_sum(var_exp) * scale - kl
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 3
Instances
Project Name: GPflow/GPflow
Commit Name: d57bfbec8e170a6c8517d60b585393b0f3b3c732
Time: 2018-11-05
Author: art.art.v@gmail.com
File Name: gpflow/models/svgp.py
Class Name: SVGP
Method Name: log_likelihood
Project Name: IndicoDataSolutions/finetune
Commit Name: 98c6d3bc803e5d04be425e6b2eabca3ea707ed0e
Time: 2020-08-24
Author: madison@indico.io
File Name: finetune/nn/target_blocks.py
Class Name:
Method Name: _apply_multilabel_class_weight
Project Name: broadinstitute/keras-rcnn
Commit Name: a89b96d6bac9093a7c4ac64b2b5c162ee6e44d92
Time: 2018-02-25
Author: jyhung@broadinstitute.org
File Name: keras_rcnn/backend/common.py
Class Name:
Method Name: anchor
Project Name: tensorflow/privacy
Commit Name: cec011e2a797a32a9b102a69d2d799256de7ca98
Time: 2020-06-08
Author: galenandrew@google.com
File Name: tensorflow_privacy/privacy/dp_query/quantile_adaptive_clip_sum_query.py
Class Name: QuantileAdaptiveClipSumQuery
Method Name: initial_global_state
Project Name: IndicoDataSolutions/finetune
Commit Name: 98c6d3bc803e5d04be425e6b2eabca3ea707ed0e
Time: 2020-08-24
Author: madison@indico.io
File Name: finetune/nn/target_blocks.py
Class Name:
Method Name: _apply_class_weight
Project Name: broadinstitute/keras-rcnn
Commit Name: 05ccc17366af6594bc0f7af15cae28ef7e1bce69
Time: 2018-06-26
Author: allen.goodman@icloud.com
File Name: keras_rcnn/backend/common.py
Class Name:
Method Name: shift