get_visualizations

eyefeatures.visualization.static_visualization.get_visualizations(data, x, y, shape, pattern, dpi=100.0, pk=None, zoom_to_data=True)[source]

Get visualizations.

Parameters:
  • data (DataFrame) – input dataframe with fixations.

  • x (str) – X coordinate column name.

  • y (str) – Y coordinate column name.

  • shape (tuple[int, int]) – height and width in pixels.

  • pattern (str) – visualization class to use.

  • dpi (float) – dpi for images.

  • pk (list[str]) – list of column names used to split pd.DataFrame.

  • zoom_to_data (bool) – if True, auto-scale to fit data (fills the image). If False, use fixed [0,1] coordinate space.

Returns:

tensor of shape [n, m, fig, fig, c], where

n : instances

m : patterns

fig : fig size

c : (3 - RGB image; 1 - gray scaled image)

Return type:

output