d2c2bb566257dff86d60184868b05e4d8e3cba90,dit/utils/testing.py,,distributions,#Any#Any#Any#,24
Before Change
if nondegenerate:
axes = set(range(len(alphabets)))
for axis, _ in enumerate(alphabets):
assume(np.sum(pmf.sum(axis=tuple(axes-set([axis]))) > 1e-6) > 1)
pmf /= pmf.sum()
dist = Distribution.from_ndarray(pmf)
After Change
if nondegenerate:
axes = set(range(len(alphabets)))
for axis, _ in enumerate(alphabets):
assume(np.all(pmf.sum(axis=tuple(axes-set([axis]))) > 1e-6))
pmf /= pmf.sum()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: dit/dit
Commit Name: d2c2bb566257dff86d60184868b05e4d8e3cba90
Time: 2018-01-02
Author: ryangregoryjames@gmail.com
File Name: dit/utils/testing.py
Class Name:
Method Name: distributions
Project Name: RaRe-Technologies/gensim
Commit Name: 02e8bf52c35d03bf30ce6c058763e7f8c7ef8ac6
Time: 2019-01-08
Author: __Singleton__@hackerdom.ru
File Name: gensim/summarization/commons.py
Class Name:
Method Name: remove_unreachable_nodes
Project Name: deepchem/deepchem
Commit Name: dcec083cb63f4d5e834833ccc9a4f0ae9cbcb0f8
Time: 2017-07-10
Author: zqwu@stanford.edu
File Name: deepchem/trans/transformers.py
Class Name: DAGTransformer
Method Name: UG_to_DAG