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
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

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: nipy/dipy
Commit Name: 0ebaf46e68a233039c42a3393ae0b0fe316408bb
Time: 2017-10-13
Author: dmreagan@iu.edu
File Name: doc/examples/viz_advanced.py
Class Name:
Method Name: left_click_callback


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