Esempio n. 1
0
def full_prep_test_ds_to_cust_pred():
    test_datas = d.read_imputed_onehot_test_dataset()
    data_from = d.read_imputed_onehot_dataset()
    data_from['Date'] = p.to_datetime(data_from['Date'], format='%d/%m/%Y')
    data_from['Day'] = data_from['Date'].dt.weekday_name
    datas = prepare_ds_to_customer_prediction(test_datas, data_from)
    d.save_dataset(datas, "test_dataset_for_customers_prediction.csv")
def build_cust_predictor_test_dataset(name):
    ds_tr = d.read_dataset("final_for_customer_train.csv")
    ds = d.read_imputed_onehot_test_dataset()
    ds = __prepare_customers_test_ds(ds, ds_tr)
    d.save_dataset(ds, name)
def build_sales_predictor_test_dataset(name):
    ds_tr = d.read_dataset("final_sales_only_train.csv")
    ds = d.read_imputed_onehot_test_dataset()
    ds = __prepare_sales_only_test_ds(ds, ds_tr)
    d.save_dataset(ds, name)