ChunjingXiao / DiffAD

Imputation-based Time-Series Anomaly Detection with Conditional Weight-Incremental Diffusion Models, KDD 2023
84 stars 12 forks source link

question about 255 line in prepare_time_data.py #1

Open LingzhengZHANG1 opened 1 year ago

LingzhengZHANG1 commented 1 year ago

Nice work! I have a detail question about your code. when you define the function "insert_normal" in prepare_time_data.py, you use "pre_labels = 'label' ". Why you use "label" instead of "pre_label"?

ZehuaGou commented 1 year ago

This occurred because we forgot to make modifications to the test code before uploading. Thank you for bringing this to our attention; we have made the necessary changes and reuploaded it.

yanruotian commented 1 year ago

This occurred because we forgot to make modifications to the test code before uploading. Thank you for bringing this to our attention; we have made the necessary changes and reuploaded it.

Thank you for your work, but that line of code at the moment says 'pre_labels', which I think should be 'pre_label'.

ZehuaGou commented 1 year ago

You are correct; it should be 'pre_label'. We have made the necessary changes and re-uploaded it. Thank you very much for pointing out this issue.