示例#1
0
def test_df_Lambert_wo(df_City):
    g = Scaler("LambertScaler").cacheOn()
    g.train(df_City).predict(df_City)
    fp: str = "tmp/df_write"
    g.write(fp)
    assert (g.trained and g.predicted and g.cache and g.persisted
            and (g.save_file_name == fp)) == True
示例#2
0
def test_df_MinMax_write(df_type):
    g = Scaler("MinMaxScaler").cacheOn()
    g.train(df_type).predict(df_type)
    fp: str = "tmp/df"
    g.write(fp)
    assert (g.trained and g.predicted and g.cache and g.persisted
            and (g.save_file_name == fp)) == True
示例#3
0
def test_df_BoxCox_read(df_type):
    g = Scaler("BoxCoxScaler").cacheOn()
    g.train(df_type).predict(df_type)
    fp: str = "tmp/df_write"
    g.write(fp)
    g.read(fp)
    assert (g.trained and g.predicted and g.cache and g.persisted
            and (g.save_file_name == fp)) == True