def METHOD_NAME(binning_method):
    # load training data
    X = np.random.rand(10, 1, 150)
    y = np.array([0, 0, 0, 0, 0, 1, 1, 1, 1, 1])
    word_length = 6
    alphabet_size = 4
    # SFA with ANOVA one-sided test
    window_size = 32
    p = SFA(
        word_length=word_length,
        anova=True,
        alphabet_size=alphabet_size,
        window_size=window_size,
        binning_method=binning_method,
    ).fit(X, y)
    assert p.breakpoints.shape == (word_length, alphabet_size)
    _ = p.transform(X, y)
    # SFA with first feq coefficients
    p2 = SFA(
        word_length=word_length,
        anova=False,
        alphabet_size=alphabet_size,
        window_size=window_size,
        binning_method=binning_method,
    ).fit(X, y)
    assert p.dft_length != p2.dft_length
    assert (p.breakpoints != p2.breakpoints).any()
    _ = p2.transform(X, y)