def test_minmaxscaler():
    (X, _) = get_dummy_data(nchar=0, ndate=0, nrows=10)
    mms = SkippaMinMaxScaler(cols=columns())
    res = mms.fit_transform(X)
    threshold = 0.01
    assert (np.abs((res.min() - 0.0)) < threshold).all()
    assert (np.abs((res.max() - 1.0)) < threshold).all()
def test_minmaxscaler():
    (X, _) = get_dummy_data(nchar=0, ndate=0, nrows=10)
    mms = SkippaMinMaxScaler(cols=columns())
    res = mms.fit_transform(X)
    threshold = 0.01
    assert (np.abs((res.min() - 0.0)) < threshold).all()
    assert (np.abs((res.max() - 1.0)) < threshold).all()