a5f32c41b01f8e058c414668d2f9b578300f45b0,dit/multivariate/entropy.py,,entropy,#,9
Before Change
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: 6
Non-data size: 5
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: thunlp/OpenKE
Commit Name: 0ab6621dcd3e9cd97a257ea2d8d05b23bfba8609
Time: 2020-04-08
Author: thu.hanxu13@gmail.com
File Name: openke/module/model/HolE.py
Class Name: HolE
Method Name: _calc
Project Name: explosion/thinc
Commit Name: add867d6aa1c7437a62ce8ebda7339b6aae113a3
Time: 2019-06-11
Author: honnibal+gh@gmail.com
File Name: thinc/neural/_classes/multiheaded_attention.py
Class Name: MultiHeadedAttention
Method Name: begin_update
Project Name: jhfjhfj1/autokeras
Commit Name: 795559c4f735a8d0a2dd16ec367cbdea51966073
Time: 2020-10-07
Author: haifengj@google.com
File Name: autokeras/nodes.py
Class Name: Input
Method Name: build
Project Name: tyiannak/pyAudioAnalysis
Commit Name: bdf9307e91354ed415c9e3493a37c326941bec7b
Time: 2019-11-13
Author: dsgou@hotmail.gr
File Name: pyAudioAnalysis/audioBasicIO.py
Class Name:
Method Name: stereo2mono
Project Name: pytorch/examples
Commit Name: 0634306968ed7f28e2b11b69d3b2df348b8ec53c
Time: 2019-11-11
Author: fedor.shabashev@gmail.com
File Name: mnist/main.py
Class Name: Net
Method Name: forward