def test_deprecated_f_param_is_alias_for_smoothing():
    ds = load_dataset(incl_test=True)
    te = H2OTargetEncoderEstimator(noise=0)
    te.train(y=ds.target, training_frame=ds.train)
    encoded = te.predict(ds.test)
    # print(encoded)
    with warnings.catch_warnings(record=True) as w:
        warnings.simplefilter("always")
        te_f = H2OTargetEncoderEstimator(noise=0, f=25, blending=True)
        assert len(w) == 1
        assert issubclass(w[0].category, H2ODeprecationWarning)
        assert "``f`` param of ``{}`` is deprecated".format(te_init_name) in str(w[0].message)