habitat.tasks.nav.nav.SoftSPL class

Soft SPL

Similar to spl with a relaxed soft-success criteria. Instead of a boolean success is now calculated as 1 - (ratio of distance covered to target).


def get_metric(self)
def reset_metric(self, episode, task, *args: typing.Any, **kwargs: typing.Any)
def update_metric(self, episode, task, *args: typing.Any, **kwargs: typing.Any)

Special methods

def __init__(self, sim: core.simulator.Simulator, config: DictConfig, *args: typing.Any, **kwargs: typing.Any)


uuid: str = None

Method documentation

def habitat.tasks.nav.nav.SoftSPL.get_metric(self)

Returns the current metric for Measure.