Skip to content

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

Open

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

Activity

  1. Livon commented on Feb 28, 2025

    @Livon
  2. xonejyr commented on Feb 28, 2025

    @xonejyr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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