Skip to content

Commit

Permalink
fix loading older versions of RAIInsights due to _FEATURE_METADATA ke…
Browse files Browse the repository at this point in the history
…y error
  • Loading branch information
imatiach-msft committed Dec 16, 2022
1 parent 2b48aa3 commit d08ae39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion responsibleai/responsibleai/rai_insights/rai_insights.py
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ def _load_metadata(inst, path):

inst.__dict__['_' + _FEATURE_COLUMNS] = meta[_FEATURE_COLUMNS]
inst.__dict__['_' + _FEATURE_RANGES] = meta[_FEATURE_RANGES]
if meta[_FEATURE_METADATA] is None:
if _FEATURE_METADATA not in meta or meta[_FEATURE_METADATA] is None:
inst.__dict__['_' + _FEATURE_METADATA] = None
else:
inst.__dict__['_' + _FEATURE_METADATA] = FeatureMetadata(
Expand Down

0 comments on commit d08ae39

Please sign in to comment.