Skip to content

Commit

Permalink
fix: mark update_class_weights_in_features transformation for version…
Browse files Browse the repository at this point in the history
… 0.6 (#2481)
  • Loading branch information
jeffreyftang authored Sep 14, 2022
1 parent 9aa72c9 commit 230383a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ludwig/utils/backward_compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def _traverse_dicts(config: Any, f: Callable[[Dict], None]):
_traverse_dicts(v, f)


@register_config_transformation("0.4", ["output_features"])
@register_config_transformation("0.6", ["output_features"])
def update_class_weights_in_features(feature: Dict[str, Any]) -> Dict[str, Any]:
if LOSS in feature:
class_weights = feature[LOSS].get(CLASS_WEIGHTS, None)
Expand Down

0 comments on commit 230383a

Please sign in to comment.