Ejemplo n.º 1
0
def testing(inv_dict):

    print "Entering testing module ..."
    inv_dict = compute(inv_dict)

    num_nodes = np.load(inv_dict["ver_fn"]).item()

    benchdir = "/Users/disa/m2g/MROCPdjango/computation/tests/bench"  # TODO DM: Alter Dynamically
    testObj = unittesting.test(
        inv_dict["graph_fn"],
        inv_dict["save_dir"],
        num_nodes,
        inv_dict["ss1_fn"],
        inv_dict["deg_fn"],
        inv_dict["tri_fn"],
        inv_dict["cc_fn"],
        inv_dict["mad_fn"],
        benchdir,
    )  # Create unittest object

    testObj.testClustCoeff()
    testObj.testDegree()
    testObj.testTriangles()
    testObj.testMAD()
    testObj.testSS1()
Ejemplo n.º 2
0
def testing(G_fn, dataDir):

  mad = getMaxAveDegree(G_fn)
  ss1_fn, deg_fn, numNodes = calcScanStat_Degree(G_fn)
  tri_fn = eignTriangleLocal(G_fn)[0]
  ccArr_fn = calcLocalClustCoeff(deg_fn, tri_fn, test=True)

  testObj = unittesting.test(G_fn, dataDir, numNodes, ss1_fn = ss1_fn, deg_fn = deg_fn, tri_fn = tri_fn, ccArr_fn = ccArr_fn, mad = mad) # Create unittest object
  testObj.testClustCoeff()
  testObj.testDegree()
  testObj.testTriangles()
  testObj.testMAD()
  testObj.testSS1()
Ejemplo n.º 3
0
def testing(inv_dict):

    print "Entering testing module ..."
    inv_dict = compute(inv_dict)

    num_nodes = np.load(inv_dict["ver_fn"]).item()

    benchdir = "/Users/disa/m2g/MROCPdjango/computation/tests/bench"  # TODO DM: Alter Dynamically
    testObj = unittesting.test(inv_dict["graph_fn"], inv_dict["save_dir"], num_nodes, inv_dict["ss1_fn"]\
        , inv_dict["deg_fn"], inv_dict["tri_fn"], inv_dict["cc_fn"], inv_dict["mad_fn"], benchdir) # Create unittest object

    testObj.testClustCoeff()
    testObj.testDegree()
    testObj.testTriangles()
    testObj.testMAD()
    testObj.testSS1()
Ejemplo n.º 4
0
def testing(G_fn, dataDir):

    mad = getMaxAveDegree(G_fn)
    ss1_fn, deg_fn, numNodes = calcScanStat_Degree(G_fn)
    tri_fn = eignTriangleLocal(G_fn)[0]
    ccArr_fn = calcLocalClustCoeff(deg_fn, tri_fn, test=True)

    testObj = unittesting.test(G_fn,
                               dataDir,
                               numNodes,
                               ss1_fn=ss1_fn,
                               deg_fn=deg_fn,
                               tri_fn=tri_fn,
                               ccArr_fn=ccArr_fn,
                               mad=mad)  # Create unittest object
    testObj.testClustCoeff()
    testObj.testDegree()
    testObj.testTriangles()
    testObj.testMAD()
    testObj.testSS1()