0dff96e2921e94c97bf8c2314b84cf23b44048f6,mvpa2/tests/test_stelzer_clusterthr.py,,test_cluster_count,#,88

Before Change


                        expected_result_3d_big)

        M = []
        for i in range(10):
            M.append(test_M_3d.flatten())
        M = np.vstack(M)
        expected_result = np.hstack([sct.get_map_cluster_sizes(test_M_3d)]*10)
        mask = np.ones(len(test_M_3d.flatten()))
        shape = test_M_3d.shape

After Change


                                index=np.arange(labels.max() + 1))
        cluster_sizes = area[labels]  //.astype(int)
        thresholded_cluster_sizes = cluster_sizes > 4
        M = np.vstack([cluster_sizes.flatten()]*10)
        expected_result = np.hstack([sct.get_map_cluster_sizes(
                                         thresholded_cluster_sizes)]*10)
        th_map = np.ones(cluster_sizes.flatten().shape)*4
        assert_array_equal(expected_result,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: PyMVPA/PyMVPA
Commit Name: 0dff96e2921e94c97bf8c2314b84cf23b44048f6
Time: 2015-03-24
Author: superstar@medusa.ovgu.de
File Name: mvpa2/tests/test_stelzer_clusterthr.py
Class Name:
Method Name: test_cluster_count


Project Name: CellProfiler/CellProfiler
Commit Name: 6bbb1ad50fcf5e5f514de815b91ef63184dbe8db
Time: 2009-12-08
Author: leek@1fc53939-2000-0410-845c-e8453a809027
File Name: pyCellProfiler/cellprofiler/modules/measureobjectintensity.py
Class Name: MeasureObjectIntensity
Method Name: run


Project Name: automl/auto-sklearn
Commit Name: 679e77b78f7ba906cd2e6aa18366fa8facd153db
Time: 2017-02-11
Author: feurerm@informatik.uni-freiburg.de
File Name: test/test_evaluation/test_test_evaluator.py
Class Name: TestEvaluator_Test
Method Name: test_datasets