Danger

You are looking at the documentation for an older version of the SDV! We are no longer supporting or maintaining this version of the software

Click here to go to the new docs pages.

sdv.metrics.timeseries.LSTMDetection.compute

classmethod LSTMDetection.compute(real_data, synthetic_data, metadata=None, entity_columns=None)

Compute this metric.

Parameters
  • real_data (pandas.DataFrame) – The values from the real dataset, passed as a pandas.DataFrame.

  • synthetic_data (pandas.DataFrame) – The values from the synthetic dataset, passed as a pandas.DataFrame.

  • metadata (dict) – TimeSeries metadata dict. If not passed, it is build based on the real_data fields and dtypes.

  • entity_columns (list[str]) – Names of the columns which identify different time series sequences.

Returns

Metric output.

Return type

Union[float, tuple[float]]