pull/1016/merge
Rutkar B 1 month ago committed by GitHub
commit b9c70090e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -120,13 +120,13 @@ class TimeSeriesTensor(UserDict):
inputs = {} inputs = {}
y = dataframe['target'] y = dataframe['target']
y = y.as_matrix() y = y.to_numpy()
inputs['target'] = y inputs['target'] = y
for name, structure in self.tensor_structure.items(): for name, structure in self.tensor_structure.items():
rng = structure[0] rng = structure[0]
cols = structure[1] cols = structure[1]
tensor = dataframe[name][cols].as_matrix() tensor = dataframe[name][cols].to_numpy()
if rng is None: if rng is None:
tensor = tensor.reshape(tensor.shape[0], len(cols)) tensor = tensor.reshape(tensor.shape[0], len(cols))
else: else:

Loading…
Cancel
Save