def test_fit_transform(params):
    """Test that fit and transform yield the same results as fit_transform."""
    arr_1 = MultipleCoefficientBinning(**params).fit(X, y).transform(X)
    arr_2 = MultipleCoefficientBinning(**params).fit_transform(X, y)
    np.testing.assert_array_equal(arr_1, arr_2)
Test that fit and transform yield the same results as fit_transform.
pyts/approximation/tests/test_mcb.py