a5f32c41b01f8e058c414668d2f9b578300f45b0,dit/multivariate/entropy.py,,entropy,#Any#Any#Any#Any#,9
Before Change
if rvs is None:
// Set to entropy of entire distribution
rvs = list(range(dist.outcome_length()))
rv_mode = RV_MODES.INDICES
if crvs is None:
crvs = []
else:
return shannon_entropy(dist)
return conditional_entropy(dist, rvs, crvs, rv_mode=rv_mode)
After Change
if dist.is_joint():
rvs, crvs, rv_mode = normalize_rvs(dist, rvs, crvs, rv_mode)
rvs = list(flatten(rvs))
H = conditional_entropy(dist, rvs, crvs, rv_mode=rv_mode)
else:
H = shannon_entropy(dist)
return H
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: dit/dit
Commit Name: a5f32c41b01f8e058c414668d2f9b578300f45b0
Time: 2015-03-14
Author: ryangregoryjames@gmail.com
File Name: dit/multivariate/entropy.py
Class Name:
Method Name: entropy
Project Name: tensorflow/agents
Commit Name: 49d8d4708eff5db085b8a6d5ee7c08972019a1e0
Time: 2019-08-16
Author: wun@google.com
File Name: tf_agents/agents/dqn/dqn_agent.py
Class Name: DqnAgent
Method Name: _compute_next_q_values
Project Name: brainiak/brainiak
Commit Name: cf5d71b9f37e6d8978d71da553ec537fa9893a52
Time: 2016-10-03
Author: mjanderson09@users.noreply.github.com
File Name: brainiak/eventseg/event.py
Class Name: EventSegment
Method Name: _log