46324d0e05c679b2cf50b81289fe2886456f6e51,dit/pid/ibroja.py,BROJAOptimizer,objective,#BROJAOptimizer#Any#,45
Before Change
pmf = self._expand(x).reshape(self._shape)
h_total = -np.nansum(pmf * np.log2(pmf))
inputs = tuple(range(len(self._shape) - 1))
p_output = pmf.sum(axis=inputs)
h_output = -np.nansum(p_output * np.log2(p_output))
input_pmf = pmf.sum(axis=-1)
After Change
reduced_pmf = pmf.sum(axis=0)
h_reduced = -np.nansum(reduced_pmf * np.log2(reduced_pmf))
others_pmf = pmf.sum(axis=(0, 2))
h_others = -np.nansum(others_pmf * np.log2(others_pmf))
omi = h_others + h_output - h_reduced
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: dit/dit
Commit Name: 46324d0e05c679b2cf50b81289fe2886456f6e51
Time: 2017-09-19
Author: ryangregoryjames@gmail.com
File Name: dit/pid/ibroja.py
Class Name: BROJAOptimizer
Method Name: objective
Project Name: cornellius-gp/gpytorch
Commit Name: 8f27fae607562177d6b840a0c0db2c67a95a88d8
Time: 2019-04-12
Author: gpleiss@gmail.com
File Name: gpytorch/likelihoods/bernoulli_likelihood.py
Class Name: BernoulliLikelihood
Method Name: expected_log_prob
Project Name: cornellius-gp/gpytorch
Commit Name: 79725f0aeb9a9f93617e291345c0b81add027373
Time: 2019-04-11
Author: gpleiss@gmail.com
File Name: gpytorch/likelihoods/bernoulli_likelihood.py
Class Name: BernoulliLikelihood
Method Name: expected_log_prob