KDD-OpenSource / DeepADoTS

Repository of the paper "A Systematic Evaluation of Deep Anomaly Detection Methods for Time Series".

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DAGMM_LSTMAutoEncoder_withoutWindow: RuntimeError: Lapack Error getrf : U(3,3) is 0, U is singular at /pytorch/aten/src/TH/generic/THTensorLapack.c:514

WGierke opened this issue · comments

On current master

2018-06-22 10:41:54 [ERROR] src.evaluation.evaluator: An exception occurred while training DAGMM_LSTMAutoEncoder_withoutWindow on Synthetic Combined Outliers: Lapack Error getrf : U(3,3) is 0, U is singular at /
pytorch/aten/src/TH/generic/THTensorLapack.c:514
2018-06-22 10:41:54 [ERROR] src.evaluation.evaluator: Traceback (most recent call last):
  File "/home/willi/Documents/MP-2018/src/evaluation/evaluator.py", line 71, in evaluate
    det.fit(X_train, y_train)
  File "/home/willi/Documents/MP-2018/src/algorithms/dagmm.py", line 196, in fit
    self.dagmm_step(input_data.float())
  File "/home/willi/Documents/MP-2018/src/algorithms/dagmm.py", line 172, in dagmm_step
    self.lambda_cov_diag)
  File "/home/willi/Documents/MP-2018/src/algorithms/dagmm.py", line 141, in loss_function
    sample_energy, cov_diag = self.compute_energy(z, phi, mu, cov)
  File "/home/willi/Documents/MP-2018/src/algorithms/dagmm.py", line 107, in compute_energy
    cov_inverse.append(torch.inverse(cov_k).unsqueeze(0))
RuntimeError: Lapack Error getrf : U(3,3) is 0, U is singular at /pytorch/aten/src/TH/generic/THTensorLapack.c:514

Still occurs after your commit:

2018-07-05 13:12:24 [ERROR] src.evaluation.evaluator: An exception occurred while training DAGMM_NNAutoEncoder_withoutWindow on Syn Extreme Outliers (mis=0.45): Lapack Error getrf : U(3,3) is 0, U is singular a$
2018-07-05 13:12:24 [ERROR] src.evaluation.evaluator: Traceback (most recent call last):
  File "/home/willi/Documents/MP-2018/src/evaluation/evaluator.py", line 75, in evaluate
    det.fit(X_train.copy(), y_train.copy())
  File "/home/willi/Documents/MP-2018/src/algorithms/dagmm.py", line 203, in fit
    self.dagmm_step(input_data.float())
  File "/home/willi/Documents/MP-2018/src/algorithms/dagmm.py", line 177, in dagmm_step
    self.lambda_cov_diag)
  File "/home/willi/Documents/MP-2018/src/algorithms/dagmm.py", line 144, in loss_function
    sample_energy, cov_diag = self.compute_energy(z, phi, mu, cov)
  File "/home/willi/Documents/MP-2018/src/algorithms/dagmm.py", line 113, in compute_energy
    cov_inverse.append(torch.inverse(cov_k).unsqueeze(0))
RuntimeError: Lapack Error getrf : U(3,3) is 0, U is singular at /pytorch/aten/src/TH/generic/THTensorLapack.c:514

see #126
should not happen again