Skip to content

train_label 没看明白,为什么要拼接呢 #827

@yaolutong

Description

@yaolutong

label_data = pd.read_csv("data/sales_train_evaluation.csv")

def get_label(target_day, predict_distance):
test_label = label_data["d_" + str(target_day)]
train_label = pd.DataFrame()
for day in range(target_day - training_data_days - predict_distance + 1, target_day - predict_distance + 1):
train_label = pd.concat([train_label, label_data["d_" + str(day)]], axis=0)
return train_label, test_label

train_label, test_label = get_label(target_day, predict_distance)
test_label

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions