Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yaolutong opened this issue Feb 28, 2025 · 2 comments
Open

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

yaolutong opened this issue Feb 28, 2025 · 2 comments

Comments

@yaolutong
Copy link

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

@Livon
Copy link

Livon commented Feb 28, 2025 via email

@xonejyr
Copy link

xonejyr commented Feb 28, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants