87f1ec81862468bd6381fd5a5d1579861a2a27d4,test/basic_test.py,,pmi_test,#Any#,194
Before Change
alpha=0.0001,
verbose=True)
for pair, pmi in sorted(pmi_dok.items(), key=lambda x:-x[1])[100:110]:
pair_ = (idx2vocab[pair[0]], idx2vocab[pair[1]])
print("pmi {} = {:.3f}".format(pair_, pmi))
print("computed PMI")
def main():
After Change
print("row shape = {}".format(rows.shape))
print("col shape = {}".format(cols.shape))
print("data shape = {}".format(data.shape))
for indpt in data.argsort()[-150:-100]:
i = rows[indpt]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: lovit/soynlp
Commit Name: 87f1ec81862468bd6381fd5a5d1579861a2a27d4
Time: 2019-02-17
Author: soy.lovit@gmail.com
File Name: test/basic_test.py
Class Name:
Method Name: pmi_test
Project Name: ilastik/ilastik
Commit Name: c8105b3974fba93097bd28e5ae14a27e5f56c857
Time: 2013-03-14
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/objectExtraction/objectExtractionSerializer.py
Class Name: SerialObjectFeaturesSlot
Method Name: deserialize
Project Name: deeptools/HiCExplorer
Commit Name: 6a11080171a22c91b18508cba9b17cee57d3e0a8
Time: 2017-10-18
Author: wolffj@informatik.uni-freiburg.de
File Name: hicexplorer/hicPlotMatrix.py
Class Name:
Method Name: plotEigenvector