Traceback (most recent call last):
File "train.py", line 109, in <module>
out, eval_res = tasks.eval_forecasting(model, data, train_slice, valid_slice, test_slice, scaler, pred_lens, n_covariate_cols, args.max_train_length-1)
File "F:\software\C-main\tasks\forecasting.py", line 70, in eval_forecasting
test_pred_inv = scaler.inverse_transform(test_pred)
File "F:\software\anaconda3\envs\ainenv\lib\site-packages\sklearn\preprocessing\_data.py", line 1048, in inverse_transform
X = check_array(
File "F:\software\anaconda3\envs\ainenv\lib\site-packages\sklearn\utils\validation.py", line 951, in check_array
raise ValueError(
ValueError: Found array with dim 4. None expected <= 2.
Q: ValueError: Found array with dim 4. StandardScaler expected <= 2.
A: Please install the appropriate package requirements as found in requirements.txt, in particular, scikit_learn==0.24.1.
标签:dim,None,py,line,expected,Found,array,ValueError From: https://www.cnblogs.com/emanlee/p/17977676