fix(dataset): key is an action if it starts with such prefix in dataset_to_policy_features (#1156)

This commit is contained in:
Steven Palma
2025-05-28 15:08:10 +02:00
committed by GitHub
parent f6198d20c6
commit 0db1a67eaf

View File

@@ -461,7 +461,7 @@ def dataset_to_policy_features(features: dict[str, dict]) -> dict[str, PolicyFea
type = FeatureType.ENV
elif key.startswith("observation"):
type = FeatureType.STATE
elif key == "action":
elif key.startswith("action"):
type = FeatureType.ACTION
else:
continue