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

Prediction Error: Found array expected dim 3. None expected <= 2. #95

Open
Viile1 opened this issue Sep 8, 2023 · 2 comments
Open

Prediction Error: Found array expected dim 3. None expected <= 2. #95

Viile1 opened this issue Sep 8, 2023 · 2 comments

Comments

@Viile1
Copy link

Viile1 commented Sep 8, 2023

When I run pred function, ı take this error. :S
Found array expected dim 3. None expected <= 2.

@uzzzr
Copy link

uzzzr commented Mar 6, 2024

same question

@MiracleLinAlpha
Copy link

MiracleLinAlpha commented Mar 10, 2024

Solution:
location function predict on file exp/exp_main.py, modify preds = pred_data.inverse_transform(preds) to preds = pred_data.inverse_transform(preds[0]) and pd.DataFrame(np.append(np.transpose([pred_data.future_dates]), preds[0], axis=1), columns=pred_data.cols).to_csv(folder_path + 'real_prediction.csv', index=False) to pd.DataFrame(np.append(np.transpose([pred_data.future_dates]), preds, axis=1), columns=pred_data.cols).to_csv(folder_path + 'real_prediction.csv', index=False)

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