ValueError in Donut
maxifischer opened this issue · comments
This is the output of running Donut on the new multivariate outliers (PR #72 ):
2018-06-13 01:05:21 [ERROR] src.evaluation.evaluator: An exception occured while training Donut on Synthetic Multivariate Outliers: The shape of ``arrays[1]`` does not agree with the shape of `timestamp` ((1000, 1) vs (1000,))
2018-06-13 01:05:21 [ERROR] src.evaluation.evaluator: Traceback (most recent call last):
File "../src/evaluation/evaluator.py", line 67, in evaluate
det.fit(X_train, y_train)
File "../src/algorithms/donut.py", line 160, in fit
timestamps, missing, (features, labels) = complete_timestamp(timestamps, (features, labels))
File "/home/maxi/.local/lib/python3.6/site-packages/donut/preprocessing.py", line 36, in complete_timestamp
format(i, array.shape, timestamp.shape))
ValueError: The shape of ``arrays[1]`` does not agree with the shape of `timestamp` ((1000, 1) vs (1000,))
Somewhere we should us "reshape(1, -1)" to add a dimension. Or drop one using slicing operator.
Can't reproduce. If you encounter the problem again, feel free to re-open this issue by stating the exact dataset that causes the error.