rex_xai._utils¶
Attributes¶
Exceptions¶
Common base class for all non-exit exceptions. |
|
Common base class for all non-exit exceptions. |
|
Common base class for all non-exit exceptions. |
|
Common base class for all non-exit exceptions. |
|
Common base class for all non-exit exceptions. |
|
Common base class for all non-exit exceptions. |
Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Like format(obj, fmt), but returns the string 'None' if obj is None. |
|
Module Contents¶
- rex_xai._utils.Strategy¶
- rex_xai._utils.Queue¶
- rex_xai._utils.SpatialSearch¶
- rex_xai._utils.powerset(r, reverse=True)¶
- exception rex_xai._utils.ReXTomlError(message)¶
Bases:
ReXErrorCommon base class for all non-exit exceptions.
- message¶
- exception rex_xai._utils.ReXPathError(message)¶
Bases:
ReXErrorCommon base class for all non-exit exceptions.
- message¶
- exception rex_xai._utils.ReXScriptError(message)¶
Bases:
ReXErrorCommon base class for all non-exit exceptions.
- message¶
- exception rex_xai._utils.ReXDataError(message)¶
Bases:
ReXErrorCommon base class for all non-exit exceptions.
- message¶
- exception rex_xai._utils.ReXMapError(message)¶
Bases:
ReXErrorCommon base class for all non-exit exceptions.
- message¶
- rex_xai._utils.xlogx(ps)¶
- rex_xai._utils._xlogx(p)¶
- rex_xai._utils.add_boundaries(img, segs, colour=None)¶
- Parameters:
img (Union[numpy.typing.NDArray, torch.Tensor])
segs (numpy.typing.NDArray)
- Return type:
numpy.typing.NDArray
- rex_xai._utils.get_map_locations(map, reverse=True)¶
- rex_xai._utils.set_boolean_mask_value(tensor, mode, order, coords, val=True)¶
- Parameters:
coords (Union[rex_xai.box.Box, Tuple[numpy.typing.NDArray, numpy.typing.NDArray]])
val (bool)
- rex_xai._utils.ff(obj, fmt)¶
Like format(obj, fmt), but returns the string ‘None’ if obj is None. See the help for format() to see acceptable values for fmt.
- rex_xai._utils.version()¶