a7ce491888cd80d9ee3a41162e39c62a159926fb,hyperspy/tests/mva/test_cluster.py,TestClusterCustomScaling,setup_method,#TestClusterCustomScaling#,170

Before Change


        n_samples=[400] * 3
        std = [1.0] * 3
        X = []
        centers = np.random.uniform(-20, 20, size=(3, 5))
        for i, (n, std) in enumerate(zip(n_samples, std)):
            X.append(centers[i] + np.random.normal(scale=std, size=(n, 5)))
        X = np.concatenate(X)
        np.random.shuffle(X)

After Change


        n_samples=[400]*3
        std = [1.0]*3
        X = []
        centers = np.array([[-12.,-12.,11,10],[12.,-12.,-12.,-11],[1.,1.,1.,1.]])
        for i, (n, std) in enumerate(zip(n_samples, std)):
            X.append(centers[i] + np.random.normal(scale=std,size=(n, 4)))
        X = np.concatenate(X)
        np.random.shuffle(X)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: hyperspy/hyperspy
Commit Name: a7ce491888cd80d9ee3a41162e39c62a159926fb
Time: 2020-05-08
Author: paul.quinn@diamond.ac.uk
File Name: hyperspy/tests/mva/test_cluster.py
Class Name: TestClusterCustomScaling
Method Name: setup_method


Project Name: hyperspy/hyperspy
Commit Name: a7ce491888cd80d9ee3a41162e39c62a159926fb
Time: 2020-05-08
Author: paul.quinn@diamond.ac.uk
File Name: hyperspy/tests/mva/test_cluster.py
Class Name: TestClusterEstimate
Method Name: setup_method


Project Name: geomstats/geomstats
Commit Name: 35e6ce06a3ef692f90166999e40a638035bb18b8
Time: 2018-12-12
Author: ninamio78@gmail.com
File Name: tests/test_euclidean_space.py
Class Name: TestEuclideanSpaceMethods
Method Name: test_inner_product_vectorization