You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a user, I would like a metric that verifies I do not have invalid discrete values.
Expected behavior
Add a new single_column metric that calculates the percent of values that match at least 1 value from the real data.
This metric takes in categorical and boolean sdtype columns.
Attributes
The metric should have the following attributes:
name: 'CategoryAdherence'
goal: Goal.MAXIMIZE
min_value: 0.0
max_value: 1.0
Methods
The metric should also define the following methods
compute(real_data, synthetic_data): Compute the score for the metric. The returned score should be the percent of synthetic values that match at least 1 value in the real data. Null values should be counted as a separate category.
Parameters:
(required) real_data: A pandas.Series object with the column of real data
(required) synthetic_data: A pandas.Series object with the column of synthetic data
Problem Description
As a user, I would like a metric that verifies I do not have invalid discrete values.
Expected behavior
single_column
metric that calculates the percent of values that match at least 1 value from the real data.Attributes
The metric should have the following attributes:
name
:'CategoryAdherence'
goal
:Goal.MAXIMIZE
min_value
: 0.0max_value
: 1.0Methods
The metric should also define the following methods
compute(real_data, synthetic_data)
: Compute the score for the metric. The returned score should be the percent of synthetic values that match at least 1 value in the real data. Null values should be counted as a separate category.real_data
: Apandas.Series
object with the column of real datasynthetic_data
: Apandas.Series
object with the column of synthetic dataThe text was updated successfully, but these errors were encountered: