4b2ea32d7748b94dd51c073cffa892c854643040,pynets/thresholding.py,,thresh_and_fit,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,149

Before Change


    else:
        conn_matrix_thr = thresholding.density_thresholding(conn_matrix, float(thr))

    if min_span_tree is True:
        print("Applying local thresholding using the Minimum Spanning Tree (MST)...\n")
        conn_matrix_thr = thresholding.local_thresholding(conn_matrix_thr)

    // Save thresholded mat
    est_path = utils.create_est_path(ID, network, conn_model, thr, mask, dir_path, node_size)
    np.save(est_path, conn_matrix_thr)
    return conn_matrix_thr, edge_threshold, est_path, thr, node_size, network

After Change


            print("%s%.2f%s" % ("\nThresholding to achieve density of: ", thr_perc, "% ...\n"))
            conn_matrix_thr = thresholding.density_thresholding(conn_matrix, float(thr))

    if not nx.is_connected(nx.from_numpy_matrix(conn_matrix_thr)):
        print("WARNING: Fragmented graph!")

    // Save thresholded mat
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: dPys/PyNets
Commit Name: 4b2ea32d7748b94dd51c073cffa892c854643040
Time: 2018-07-08
Author: dpisner@utexas.edu
File Name: pynets/thresholding.py
Class Name:
Method Name: thresh_and_fit


Project Name: dPys/PyNets
Commit Name: 4b2ea32d7748b94dd51c073cffa892c854643040
Time: 2018-07-08
Author: dpisner@utexas.edu
File Name: pynets/thresholding.py
Class Name:
Method Name: thresh_diff


Project Name: pgmpy/pgmpy
Commit Name: 5a53f60e5143ab6f416437dadddd2f1df133a247
Time: 2015-04-07
Author: abinash.panda.ece10@itbhu.ac.in
File Name: pgmpy/models/JunctionTree.py
Class Name: JunctionTree
Method Name: check_model