class
DistanceToGoalRewardThe measure calculates a reward based on the distance towards the goal. The reward is - (new_distance - previous_distance) i.e. the decrease of distance to the goal.
Methods
- def get_metric(self)
- def reset_metric(self, episode, task, *args: typing.Any, **kwargs: typing.Any)
- def update_metric(self, episode, task: core.embodied_task.EmbodiedTask, *args: typing.Any, **kwargs: typing.Any)
Special methods
- def __init__(self, sim: core.simulator.Simulator, config: DictConfig, *args: typing.Any, **kwargs: typing.Any)
Data
Method documentation
def habitat. tasks. nav. nav. DistanceToGoalReward. get_metric(self)
Returns | the current metric for Measure . |
---|