a5f32c41b01f8e058c414668d2f9b578300f45b0,dit/multivariate/entropy.py,,entropy,#,9
Before Change
if dist.is_joint():
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: 4
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: ellisdg/3DUnetCNN
Commit Name: e6a8a482f15803b24fc4bda6e2a0bd001ca77c87
Time: 2017-04-07
Author: david.ellis@unmc.edu
File Name: data.py
Class Name:
Method Name: read_subject_folder
Project Name: dit/dit
Commit Name: f0502c29f6e4dd8ef3a230a71f9a88d516357366
Time: 2013-09-26
Author: chebee7i@gmail.com
File Name: dit/distribution.py
Class Name: BaseDistribution
Method Name: zipped
Project Name: CamDavidsonPilon/lifelines
Commit Name: b46c893e2c0f9cd505b597c2ff215a0df04b6050
Time: 2020-05-19
Author: cam.davidson.pilon@gmail.com
File Name: lifelines/fitters/npmle.py
Class Name:
Method Name: log_likelihood