We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi Same script that was working this morning now gives me :
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-16-8eee1c4218f9> in <module>() 14 target=args.target, 15 timeenc=timeenc, ---> 16 freq=args.freq 17 ) 18 data_loader = DataLoader( 5 frames /content/Informer2020/data/data_loader.py in __init__(self, root_path, flag, size, features, data_path, target, scale, timeenc, freq) 216 self.root_path = root_path 217 self.data_path = data_path --> 218 self.__read_data__() 219 220 def __read_data__(self): /content/Informer2020/data/data_loader.py in __read_data__(self) 244 if self.scale: 245 train_data = df_data[border1s[0]:border2s[0]] --> 246 self.scaler.fit(train_data.values) 247 data = self.scaler.transform(df_data.values) 248 else: /usr/local/lib/python3.7/dist-packages/sklearn/preprocessing/_data.py in fit(self, X, y) 667 # Reset internal state before fitting 668 self._reset() --> 669 return self.partial_fit(X, y) 670 671 def partial_fit(self, X, y=None): /usr/local/lib/python3.7/dist-packages/sklearn/preprocessing/_data.py in partial_fit(self, X, y) 698 X = check_array(X, accept_sparse=('csr', 'csc'), 699 estimator=self, dtype=FLOAT_DTYPES, --> 700 force_all_finite='allow-nan') 701 702 # Even in the case of `with_mean=False`, we update the mean anyway /usr/local/lib/python3.7/dist-packages/sklearn/utils/validation.py in check_array(array, accept_sparse, accept_large_sparse, dtype, order, copy, force_all_finite, ensure_2d, allow_nd, ensure_min_samples, ensure_min_features, warn_on_dtype, estimator) 529 array = array.astype(dtype, casting="unsafe", copy=False) 530 else: --> 531 array = np.asarray(array, order=order, dtype=dtype) 532 except ComplexWarning: 533 raise ValueError("Complex data not supported\n" /usr/local/lib/python3.7/dist-packages/numpy/core/_asarray.py in asarray(a, dtype, order) 81 82 """ ---> 83 return array(a, dtype, copy=False, order=order) 84 85 ValueError: could not convert string to float:
Note : args.freq = 'h' # freq for time features encoding
args.freq = 'h' # freq for time features encoding
The text was updated successfully, but these errors were encountered:
My mistake, I had a bad value in my csv file. The error was just weird in, seemingly pointing at "args.freq" line.
Sorry, something went wrong.
No branches or pull requests
Hi
Same script that was working this morning now gives me :
Note :
args.freq = 'h' # freq for time features encoding
The text was updated successfully, but these errors were encountered: