def test_predict_df_BoxCox_df_type(df_type): g = Scaler("BoxCoxScaler") g.train(df_type) assert g.predict(df_type).shape == df_type.shape
def test_df_Lambert_predict(df_type): g = Scaler("LambertScaler") g.train(df_type) assert g.predict(df_type).shape == df_type.shape
def test_df_BoxCox_inverse(df_type): g = Scaler("BoxCoxScaler") g.train(df_type, inplace=False) assert g.inverse_predict(g.predict(df_type) == df_type).any().any()