Running a detection metric on time series data with no entity_columns fails #77
Labels
bug
Something isn't working
data:sequential
Related to timeseries datasets
resolution:WAI
The software is working as intended
Environment Details
Please indicate the following details about the environment in which you found the bug:
Error Description
My data is a sequence of a single type with no entity_columns set. As described in the user guide, model training works fine, however, I'm unable to run the detection metrics to check the "goodness" of fit. The error I get is
ValueError: No group keys passed!
Looking into sources, indeed there's the problem as the code relies on the
entity_columns
variable:SDMetrics/sdmetrics/timeseries/detection.py
Lines 37 to 49 in dd00b17
I'm wondering whether a simple change can fix the problem correcly (see below). Could you please confirm if this is the right way of thinking?
This is change in
_build_x
:and one more in the
compute
method, lineSDMetrics/sdmetrics/timeseries/detection.py
Line 90 in dd00b17
to be changed to:
Steps to reproduce
A simple example based on the user guide:
Once this is run, the error traceback is as follows:
The text was updated successfully, but these errors were encountered: