def test_removes_columns_sparse(self):
        m = self.mat
        m[0, :] += 1  # Ensures that no column has zero sum
        m[:, [1, 3]] = 0  # Ensures column 1 and 3 have zero sum
        m = sp.csc_matrix(m)
        norm = normalize_features(m)
        assert(np.allclose(norm.sum(axis=0), 1))
        self.assertEqual(norm.shape, (m.shape[0], m.shape[1] - 2))
dataset/ETHPy150Open omangin/multimodal/tests/test_evaluation.py/TestNormalizeFeatures.test_removes_columns_sparse/original