sorbetto.tile.tile module

class sorbetto.tile.tile.Tile(parameterization: AbstractParameterization, flavor: AbstractFlavor | None = None, name: str = 'Tile', resolution: int = 1001, disable_colorbar: bool = True)[source]

Bases: object

This is the base class for all Tiles. A Tile is a graphical representation (of what ????) with: - a parameterization; - a flavor; # TDOO: not always because of EmptyTile - and some annotations.

Tiles with the default parameterization are studied in detail in Piérard et al. [16]. Various flavors of Tiles are described in Halin et al. [12] and Piérard et al. [15].

appendAnnotation(annotation)[source]
clearAnnotations()[source]
property disable_colorbar: bool
draw(fig: Figure | None = None, ax: Axes | None = None) tuple[Figure, Axes][source]

Draws the Tile in the given figure and axes.

Parameters:
  • fig (Figure | None, optional) – The figure to draw in. If None, a new figure is created. Defaults to None.

  • ax (Axes | None, optional) – The axes to draw in. If None, a new axis is created. Defaults to None. Note that this argument is ignored if fig is None.

Returns:

The figure and axes used for drawing.

property flavor: AbstractFlavor | None
genAnnotations() Iterator[AbstractAnnotation][source]
getExplanation() str[source]
property importances
property mat_value: ndarray
property name: str
property parameterization: AbstractParameterization
popAnnotation(index: SupportsIndex = -1) AbstractAnnotation[source]

Remove and return an annotation at index (default last).

Parameters:

index (SupportsIndex, optional) – index of the annotation to pop. Defaults to -1.

Returns:

the annotation at the specified index.

Return type:

AbstractAnnotation

Raises:

IndexError – if the index is out of range.

removeAnnotation(annotation)[source]
property resolution: int
property zoom: Extent