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
In this example, I specify that I just want to validate accuracy on a particular group: white males. The evaluation will run, but when I load validation results, I get:
Here, you're relying on serialization of slicing_specs for equality comparison. The problem is that feature_values is a map field, and the entry order is random in the serialized string. Sometimes you get race serialized before sex, and sometimes the reverse happens, which is why I get the missing slices message.
I think custom serialization using sorted map fields would fix this bug.
The text was updated successfully, but these errors were encountered:
TFMA version: 0.33
Hi team,
I found a bug in TFMA validation. It happens when I use multiple feature values to specify slicing like so:
In this example, I specify that I just want to validate accuracy on a particular group: white males. The evaluation will run, but when I load validation results, I get:
I've tracked down the cause of this bug, and I believe it's the following two lines:
model-analysis/tensorflow_model_analysis/evaluators/metrics_validator.py
Line 213 in 65bb403
model-analysis/tensorflow_model_analysis/evaluators/metrics_validator.py
Line 262 in 65bb403
Here, you're relying on serialization of slicing_specs for equality comparison. The problem is that feature_values is a map field, and the entry order is random in the serialized string. Sometimes you get race serialized before sex, and sometimes the reverse happens, which is why I get the missing slices message.
I think custom serialization using sorted map fields would fix this bug.
The text was updated successfully, but these errors were encountered: