62edb932fd14b3039ac996de4e89055003af06a0,pygsp/graphs/airfoil.py,Airfoil,__init__,#Airfoil#,21

Before Change



    def __init__(self, **kwargs):

        airfoil = PointCloud("airfoil")
        i_inds = airfoil.i_inds
        j_inds = airfoil.j_inds

        A = sparse.coo_matrix((np.ones((12289)),
                              (np.reshape(i_inds - 1, (12289)),
                               np.reshape(j_inds - 1, (12289)))),

After Change



    def __init__(self, **kwargs):

        data = loadmat("pointclouds/airfoil")
        coords = np.concatenate((data["x"], data["y"]), axis=1)

        i_inds = np.reshape(data["i_inds"] - 1, 12289)
        j_inds = np.reshape(data["j_inds"] - 1, 12289)
        A = coo_matrix((np.ones(12289), (i_inds, j_inds)), shape=(4253, 4253))
        W = (A + A.T) / 2.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: epfl-lts2/pygsp
Commit Name: 62edb932fd14b3039ac996de4e89055003af06a0
Time: 2017-08-16
Author: michael.defferrard@epfl.ch
File Name: pygsp/graphs/airfoil.py
Class Name: Airfoil
Method Name: __init__


Project Name: epfl-lts2/pygsp
Commit Name: 62edb932fd14b3039ac996de4e89055003af06a0
Time: 2017-08-16
Author: michael.defferrard@epfl.ch
File Name: pygsp/graphs/airfoil.py
Class Name: Airfoil
Method Name: __init__


Project Name: epfl-lts2/pygsp
Commit Name: 62edb932fd14b3039ac996de4e89055003af06a0
Time: 2017-08-16
Author: michael.defferrard@epfl.ch
File Name: pygsp/graphs/davidsensornet.py
Class Name: DavidSensorNet
Method Name: __init__


Project Name: epfl-lts2/pygsp
Commit Name: 62edb932fd14b3039ac996de4e89055003af06a0
Time: 2017-08-16
Author: michael.defferrard@epfl.ch
File Name: pygsp/graphs/logo.py
Class Name: Logo
Method Name: __init__