@memoized_meth
def distance(self, other):
    '\n        Compute the distance from ``self`` to ``other``.\n\n        Parameters\n        ----------\n        other : LabeledVector\n            The LabeledVector from which the distance is computed.\n        '
    if (not isinstance(other, LabeledVector)):
        raise TypeError('Cannot compute distance from obj of type %s', type(other))
    if (self.labels != other.labels):
        raise TypeError('Cannot compute distance due to mismatching `labels`')
    return LabeledVector(list(zip(self.labels, (self - other))))
Compute the distance from ``self`` to ``other``.

Parameters
----------
other : LabeledVector
    The LabeledVector from which the distance is computed.
@memoized_meth
def distance(self, other):
    '\n        Compute the distance from ``self`` to ``other``.\n\n        Parameters\n        ----------\n        other : LabeledVector\n            The LabeledVector from which the distance is computed.\n        '
    if (not isinstance(other, LabeledVector)):
        raise TypeError('Cannot compute distance from obj of type %s', type(other))
    if (self.labels != other.labels):
        raise TypeError('Cannot compute distance due to mismatching `labels`')
    return LabeledVector(list(zip(self.labels, (self - other))))