def test_fit_transform(params):
    """Check that fit and transform and fit_transform yield same results."""
    transformer = WEASELMUSE(**params)
    arr_1 = transformer.fit(X, y).transform(X)
    arr_2 = transformer.fit_transform(X, y)
    if transformer.sparse:
        assert (arr_1 != arr_2).nnz == 0
    else:
        np.testing.assert_array_equal(arr_1, arr_2)
Check that fit and transform and fit_transform yield same results.
pyts/multivariate/transformation/tests/test_weasel_muse.py