Skip to content

some confusion about using the get_metrics function #38

@zhangsunny

Description

@zhangsunny

Hi, I am developing my model with TSB-AD datasets.

According to the example (https://github.com/TheDatumOrg/TSB-AD/blob/ae42795ae23b0f332a716228ed5d218d7a4ce906/TSB_AD/main.py#L56), we can use the get_metrics function to calculate VUS-PR and VUS-ROC.

The get_metrics function has a parameter called slidingWindow (https://github.com/TheDatumOrg/TSB-AD/blob/ae42795ae23b0f332a716228ed5d218d7a4ce906/TSB_AD/evaluation/metrics.py#L3). Does this parameter represent the window size selected during model training?

In my experiments, I found that this window size has an impact on VUS-PR and VUS-ROC. Specifically, larger windows result in higher values for both metrics. Therefore, should we fix the slidingWindow parameter in get_metrics (e.g. the defualt 100) regardless of the window size chosen during model training to ensure a fair performance comparison?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions