Now that we have property classes, we want to move the metrics used in the DiagnosticReport into their respective properties.
This is the spec for the Coverage property:
Attributes
_details - A dataframe containing the following columns
'Column'
'Metric'
'Score'
The metrics used in this class are: [RangeCoverage, CategoryCoverage]
Methods
_generate_details(self, real_data, synthetic_data, metadata, progress_bar) - Generate the _details dataframe that will be used by the base class to get the score.
Pseudocode:
for column in real_data.columns:
if column.sdtype in ('categorical', 'boolean'):
metric = 'CategoryCoverage'
score = CategoryCoverage.compute_breakdown(real_data, synthetic_data)
elif column.sdtype in ('datetime', 'numerical'):
metric = 'RangeCoverage'
score = RangeCoverage.compute_breakdown(real_data, synthetic_data)
else:
continue
get_visualization() - Returns a plotly.graph_objects._figure.Figure object for the specified table. Use code from get_coverage_plot.
Problem Description
Now that we have property classes, we want to move the metrics used in the
DiagnosticReport
into their respective properties.This is the spec for the
Coverage
property:Attributes
_details
- A dataframe containing the following columnsThe metrics used in this class are: [RangeCoverage, CategoryCoverage]
Methods
_generate_details(self, real_data, synthetic_data, metadata, progress_bar)
- Generate the_details
dataframe that will be used by the base class to get the score. Pseudocode:get_visualization()
- Returns a plotly.graph_objects._figure.Figure object for the specified table. Use code from get_coverage_plot.Expected behavior
Additional context