4d82f4f9d50f73390b24041c87454821cb00441e,pynets/thresholding.py,,density_thresholding,#Any#Any#,53
Before Change
conn_matrix = threshold_absolute(conn_matrix, abs_thr)
G=nx.from_numpy_matrix(conn_matrix)
density=nx.density(G)
print("Iteratively thresholding -- Iteration " + str(i) + " -- with absolute thresh: " + str(abs_thr) + " and Density: " + str(density) + "...")
i = i + 1
return(conn_matrix)
////Calculate density
After Change
conn_matrix = threshold_absolute(conn_matrix, abs_thr)
G=nx.from_numpy_matrix(conn_matrix)
density=nx.density(G)
print("%s%d%s%.2f%s%.2f%s" % ("Iteratively thresholding -- Iteration ", i, " -- with absolute thresh: ", abs_thr, " and Density: ", density, "..."))
i = i + 1
return(conn_matrix)
////Calculate density
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 10
Instances
Project Name: dPys/PyNets
Commit Name: 4d82f4f9d50f73390b24041c87454821cb00441e
Time: 2018-01-31
Author: dpisner@utexas.edu
File Name: pynets/thresholding.py
Class Name:
Method Name: density_thresholding
Project Name: tech-srl/code2vec
Commit Name: 058443c5aa4dcd59675b9a7dcec6ecfbaf2e81a4
Time: 2019-04-03
Author: eladnah@gmail.com
File Name: tensorflow_model.py
Class Name: Code2VecModel
Method Name: train
Project Name: suragnair/alpha-zero-general
Commit Name: f3919991f9fbb267e8397896d4d9b5793ad78ae9
Time: 2018-01-28
Author: suragnair@hotmail.com
File Name: Coach.py
Class Name: Coach
Method Name: learn
Project Name: tech-srl/code2vec
Commit Name: c062e643beace53ae90a627fd4e2490f5a8e8d5d
Time: 2019-04-03
Author: eladnah@gmail.com
File Name: code2vec.py
Class Name:
Method Name: